Questions tagged [control-characters]
Use this tag for questions about control characters – non-printing characters used to send signals to the output terminal.
30 questions
1 vote
1 answer
242 views
What is PS1 prompt \[\e]0; vs \[\e]2; , it looks like one is for title name of tab, one is for title name of windows
here is my ps1 does someone know documents about this? export PS1='\[\e]0;YYY@\h:\w\a\]\[\e]2;XXX\W\a\e[32;40m\]\[\e[36;40m\]$?\[\e[31;40m\]\D{%d}\[\e[35;40m\]\D{%H%M}\[\e[36;40m\]\W\[\e[32;40m\]>\[...
0 votes
0 answers
77 views
Binary file with field seperator ^A is not loading using SQLLDR
I'm trying to upload .dat file to Oracle DB using SQLLDR. File data columns are separated by "^A". File charset is of binary. bash-4.4$ file -i /tmp/t_details_all_data_20240209.dat /tmp/...
1 vote
3 answers
410 views
Where are the characters going?
In a shell where \u is valid (bash +4.3, ksh93 or zsh) we can print Unicode characters: $ printf 'a b c \ua0 \ua1 \ua2 \ua3 \n' a b c ¡ ¢ £ Which are some characters from the Latin-1_Supplement ...
1 vote
1 answer
1k views
xterm does not support osc 52
I use xterm that comes with XQuartz on my macbook. However OSC 52 control sequence doesn't seem to work. Here's how to repro: open xterm in the shell, issue printf '\e]52;c;%s\007' $(printf 'test off'...
3 votes
1 answer
548 views
What can the C1 control codes be used for?
Today I discovered that there is a significantly large group of additional control codes, called C1 control codes, spanning from U+0080—U+009F (32 characters). I think that it's an interesting fact ...
7 votes
1 answer
942 views
gnome-terminal: strange control characters on Alt key
I probably misconfigured something, but I don't know what. (see UPDATE 1 and 2 below) In gnome-terminal, when I hit Alt (without any other key), it immediately sends ^[< to the terminal (I tested ...
1 vote
0 answers
583 views
Why are rapid Ctrl-Space sequences sometimes handled differently by GNU screen than slow Ctrl-Space?
I have GNU screen configured to use Ctrl+Space as the escape character. This means that Ctrl+SpaceSpace will send a literal Ctrl+Space to the process in the window. Also, Ctrl+Space Ctrl+Space is the ...
5 votes
1 answer
7k views
`cat -v` for non-printing non-ascii UTF characters
cat has a -v option which converts non-printing characters to their caret notation (which is useful if we don't want the terminal to interpret the control characters literally in cat output). But ...