Skip to main content

Questions tagged [control-characters]

Use this tag for questions about control characters – non-printing characters used to send signals to the output terminal.

1 vote
1 answer
242 views

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\]>\[...
user3073309's user avatar
0 votes
0 answers
77 views

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/...
Pat's user avatar
  • 239
1 vote
3 answers
410 views

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 ...
QuartzCristal's user avatar
1 vote
1 answer
1k views

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'...
KFL's user avatar
  • 307
3 votes
1 answer
548 views

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 ...
psprint's user avatar
  • 251
7 votes
1 answer
942 views

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 ...
Stuck's user avatar
  • 171
1 vote
0 answers
583 views

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 ...
Wildcard's user avatar
  • 37.5k
5 votes
1 answer
7k views

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 ...
flow2k's user avatar
  • 641

15 30 50 per page