Have a putty log file and want readable text. How can I edit this exisiting file
ID: 3604043 • Letter: H
Question
Have a putty log file and want readable text. How can I edit this exisiting file to get readable text? Is there a tool?
[?1034hu3479705@cois-linux:~> ls
[0m[01;34manimal[0m [00mhelp[0m [00mpizza[0m
[01;34mbin[0m [00mls.out[0m [00mpractical[0m
[00mdays[0m [01;34mmammals[0m [00mpresently the policy of IANA to assign a single well-known[0m
[00;32mdog[0m [00mmessage.txt[0m [00mt updated on 2011-11-23)[0m
[00mecho:[0m [00mOutput[0m
u3479705@cois-linux:~> rm pizza
u3479705@cois-linux:~> ls
u3479705@cois-linux:~> vim pizza
[?1049h[?1h=[1;24r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[24;1H"pizza" [New File][>c[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~
Explanation / Answer
in a PuTTY session you will find text on your terminal screen which you want to type in again. Like most other terminal emulators, PuTTY allows you to copy and paste the text rather than having to type it again. Also, copy and paste uses the Windows clipboard, so that you can paste (for example) URLs into a web browser, or paste from a word processor or spreadsheet into your terminal session.
PuTTY's copy and paste works entirely with the mouse. In order to copy text to the clipboard, you just click the left mouse button in the terminal window, and drag to select text. When you let go of the button, the text is automatically copied to the clipboard. You do not need to press Ctrl-C or Ctrl-Ins; in fact, if you do press Ctrl-C, PuTTY will send a Ctrl-C character down your session to the server where it will probably cause a process to be interrupted.
You can add or modify a mode by selecting it from the drop-down list, choosing whether it's set automatically or to a specific value with the radio buttons and edit box, and hitting ‘Add’. A mode (or several) can be removed from the list by selecting them and hitting ‘Remove’. The effect of the mode list is as follows:
PuTTY proper will send modes that it has an opinion on (currently only the code for the Backspace key, ERASE). Plink on Unix will propagate appropriate modes from the local terminal, if any.
By default, all of the available modes are listed as ‘Auto’, which should do the right thing in most circumstances.
The precise effect of each setting, if any, is up to the server. Their names come from POSIX and other Unix systems, and they are most likely to have a useful effect on such systems. (These are the same settings that can usually be changed using the stty command once logged in to such servers.)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.