Tagged Questions
0
votes
1answer
30 views
What characters in my printed boot scroll are artifacts?
I am a tech writer and I need to include a boot dump in a document. The dump the engineers gave me has some "bad characters" that I need to delete. What form does a "bad character" take? There are ...
2
votes
1answer
50 views
How can a bash script detect support for window titling escape characters?
I have a debug trap that runs every time I enter a command in bash that sets the window title to indicate what command is running. I'm leaving out all the configuration details and boil it down to:
...
2
votes
1answer
657 views
Backspace, del, arrow keys not working with interactive programs in Tilda
I currently run Openbox on a light netinstall of Debian. In Tilda, when I use a program like nslookup or winexe, some of my keys do not work properly.
Backspace generates ^?
Up generates ^[[A
...
0
votes
1answer
202 views
Escape Code to Change Cursor Shape
I know that Konsole supports an escape code like "\<Esc>]50;CursorShape=0\x7" that will change the cursor shape. I was wondering if any other terminal emulators support changing the cursor shape ...
2
votes
1answer
168 views
Is there a way to lock terminal's title?
Sometimes there're lots of different sessions opened in own terminal's tabs and it's rather desirable to have theirs initial titles (named by session name) locked since local title tweaks make those ...
4
votes
2answers
291 views
is it possible to send a control sequence to a terminal emulator using the keyboard
If you type echo -e '\eZ' and hit return in a shell running in an xterm, you'll see that the terminal emulator prints an obscure code 1;2c. This seems to indicate that xterm interprets the VT100 ...
6
votes
4answers
1k views
How to clear terminal completely?
When we use clear command or Ctrl+L in terminal, it clears terminal but we can still scroll back to view the last used commands. Is there a way to completely clear the terminal?
4
votes
2answers
263 views
DEC ANSI command sequence questions; cursor movement
So I'm writing a terminal emulation (I know, I should just compile putty, etc.) and am at the stage of plodding through vttest to make sure it's right. I'm basing it on the VT102 for now but will add ...
3
votes
2answers
692 views
Trying to print up down arrow keys
I have this:
I read down arrow key
abc@abc-ubuntu:~/bashpratice$ read -n 3 key
^[[Babc@abc-ubuntu:~/bashpratice$
I am able to grep for it
abc@abc-ubuntu:~/bashpratice$ echo $key | grep '\['
[B
...
11
votes
3answers
3k views
Removing control chars (including console codes / colours) from script output
I can use the "script" command to record an interactive session at the command line. However, this includes all control characters and colour codes. I can remove control characters (like backspace) ...
3
votes
2answers
323 views
Unix Shell and colours
Can any one please help me understand this code snippet that I found in .profile file
echo -en "\e[32;44m $(hostname) \e[m";echo -e "\e[m"
3
votes
1answer
402 views
Reverse control-code look up for terminals
My understanding is that terminals often use ANSI control-codes to represent non-alphanumeric character sequences. For example, when editing .inputrc for Bash in Linux, it's easy to find code ...