Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [escape-characters]

Escape sequences such as encodings of terminal commands and function keys

2
votes
2answers
349 views

ESC-q doesn't work in tmux with zsh

I use Escq a lot (stashing the current line while I execute another command), and it works fine with Gnome Terminal 3.6.0 + zsh. However, if I start tmux, then it stops working: the cursor just moves ...
1
vote
2answers
814 views

How to printf an exclamation point in tcsh?

What's the best way to printf an exclamation point in tcsh? It seems like using single or double quotes has no effect on escaping the exclamation point; and using a backspace does work, but then it ...
2
votes
1answer
32 views

Deactivate DCS contol character

Esoteric characters in filenames sometimes lead to weird errors. I recently backed up files with rsync, noticing that some minutes into the process, all status output stopped. Investigating further, I ...
0
votes
1answer
80 views

xterm not displaying color when echoing a coloured string

In an Xterm(271) (under Ubuntu 12.04) this Octave script does not print coloured strings (e.g. cprintf("red","%s\n","test"), in an executable Octave script). It works fine in a Xterm(297) on a ...
0
votes
1answer
91 views

expansion with escape character

I am having trouble doing expansion with this because of the escape character. UNF\1122 Right now I am trying to stick with the really simple example of: ps -ef | grep $USER Eventually after I ...
0
votes
1answer
832 views

using ansi escape codes to change the background color in xfce4-terminal

This works to change the background color for the entire terminal with xterm: printf '\033]10;%s\a\033]11;%s\a' Blue Red It doesn't work in xfce4-terminal, tho. Is there something that will work? ...
-1
votes
1answer
742 views

double quote single quote combination BCP on Linux

Can someone show me the correct way to structure this command? FYI - I think this boils down to an escape issue. There are several posts close but I have yet to find a solution which will run as a ...
3
votes
0answers
60 views

Which terminals or terminal emulators support hardware windows?

terminfo(5) manual page describes a set of capabilities wnum (maximum number of definable windows), cwin (define a window), wingo (go to window), wind (resize current window), but only one terminal ...
3
votes
0answers
1k views

Kate can't show some newline characters using escape sequences

Kate and KWrite both don't show all \n characters. Problems appear to be next to where there are empty lines. The problem isn't just in the highlighting itself. Wrong number of matches are found. ...
1
vote
0answers
64 views

Using a here-doc with trailing backslashes inside a process substitution in bash

This: cat <<EOF one two three EOF Prints: one two three And this: cat <<EOF one \\ two \\ three EOF Prints: one \ two \ three But while this: cat <( cat <<EOF one two ...
1
vote
0answers
135 views

Dash escaping hyphen?

I am using Homebrews dash package on MacOS to print a text. echo "Hello World - Test" But I am receiving Hello World \- Test What am I doing wrong?
1
vote
0answers
496 views

Hmac with openssl's command line tool with a key that might contain null bytes

Let's say I want to do an SHA256HMAC digest of a file with the openssl command line utility: openssl dgst -sha256 -hmac "$(cat $KEY_FILE)" -hex "$TARGET_FILE" How can I protect this command against ...
1
vote
0answers
66 views

Where can I find keyboard key combinations that enter non-printable terminal characters?

For example, in my xterm to get: 000: Ctrl+Space or Ctrl+@ 001: Ctrl+A 002: Ctrl+B 003: Ctrl+C 004: Ctrl+D 005: Ctrl+E 006: Ctrl+F 007: Ctrl+G 008: Ctrl+H 009: Ctrl+I or Tab 010: Ctrl+J or ...
0
votes
0answers
15 views

I am using Ubuntu and trying to minimize putty window from a bash script, are there any parameters or escape sequences?

For instance in order to maximize putty from command line someone stated (in this thread) that the escape sequence is '\e[9;1t' I wondering is there any sequence to minimize putty window? where can ...
0
votes
0answers
62 views

send carriage return to java application from a shell

I have a script that invoke a java/scala application, this application asks the user several inputs. I want to automatically give the answers to the java app, so I'm creating this script. I have some ...
0
votes
0answers
385 views

Does ssh really fail correctly escaping remote commands?

I take this simple example in bash: echo a "b c" d The correct output is: a b c d Which is internally 'encoded' as an array of three arguments while the middle one (containing b and c) is 4 ...
0
votes
0answers
551 views

Calling a password checking command from PHP using exec() - how to escape user input?

I am working on a PHP-based website where the login form needs to authenticate against local users on the system via PAM - in other words, they should be able to login successfully if they enter a ...