Questions tagged [control-characters]

Control characters are non-printing characters used to send signals to the output terminal.

Control characters are generally non-printing characters that are used to send signals to the output terminal.

More information is available on Wikipedia.

218 questions
1
vote
2 answers

Tab character not working in Python IDLE

I'm trying to implement a tab space using the '\t' in my code (see code below), but at print time it outputs '\t, char'. Any help would be greatly appreciated. paranoid_android = "Marvin" letters = list(paranoid_android) for char in letters: …
Datalink
  • 71
  • 3
  • 6
1
vote
1 answer

How to use a control character in a redis-cli argument?

What I am trying to execute from my bash script: redis-cli srem myset "abc\x06def" \x06 part seems to be ignored. OS is Ubuntu 14.04 LTS and LANG=en_US.UTF-8, if these have anything to do with the problem.
previous_developer
  • 10,579
  • 6
  • 41
  • 66
1
vote
1 answer

Regex Pattern for exclude control characters and include all language charactes tab and new line must include

We have set of inputs like 'java-> Way-> Project test'. ex: We need to eliminate control characters only. we used [\p{C}] for matching those characters unfortunately it matches the the tab space and new line characters. Kindly give(Valid regex…
1
vote
1 answer

Remove All Control Characters In All String Fields In All Tables In Access Database

I need to scrub a regularly received Access database so that all of its tables can be exported to "clean" CSVs and then imported by Base SAS via PROC IMPORT. I am not experienced with Access VBA or programming in general, but I attempted to kitbash…
1
vote
1 answer

TYPE command stops on 0x1A, except when piped to MORE?

If I have a binary file with the following contents: 48 65 6C 6C 6F 1A 48 65 6C 6C 6F Then when I run the TYPE command on it, it stops reading at the 1A character: C:\Temp>type file.bin Hello However, when I run TYPE again but this time pipe the…
Govind Parmar
  • 20,656
  • 7
  • 53
  • 85
1
vote
1 answer

ed - quoting control characters?

How can I search for control characters in unix ed(1)? For example ed somefile.log <
Rumbleweed
  • 370
  • 1
  • 9
1
vote
1 answer

Do control characters have graphic character equivalent?

I came across a VT(Vertical Tab) character, when I searched for this character I found that its ascii code is 11 and its male symbol(♂). When I try to test a the character with regex \{Cntrl}in java using the matches function in java, I can see that…
Vishwas Pawar
  • 183
  • 2
  • 16
1
vote
1 answer

How To read control characters in a pdf using java

I'm using PDFBox to read PDF files. But some characters are not printing well and printing like control characters. Some one help to read the values from the control characters. I've attached the image Kindly have a look at that image Sample…
Bharath Babu
  • 65
  • 2
  • 8
1
vote
1 answer

Data Link Escapes and Other Nonprintable Characters

In a while going through a .cfc file with a sublime text editor, I noticed that 3 characters in a string were highlighted. These characters were "DLE", and the group was treated as one character. I cannot highlight one without highlighting all of…
carrizal
  • 714
  • 7
  • 10
1
vote
4 answers

Wrong symbol when using escape sequences learn python the hard way ex10

When i try to print \v or \f i get gender symbols instead: Note also that I'm a complete beginner at programming. edit: Seems like i didnt write clear enough, i dont want to write \v or \f but the escape sequence created by them, i dont know what…
1
vote
2 answers

How to send ^K to shell

I want to run a shell command in Terminal, then clear the console, from Applescript. If I was doing this by hand, I'd use ^K -- how do I send the ^K character in a string to Terminal?
AmbroseChapel
  • 11,957
  • 7
  • 46
  • 68
1
vote
3 answers

Apply formatting control characters (backspace and carriage return) to string, without needing recursion

What is the easiest way to "interpret" formatting control characters in a string, to show the results as if they were printed. For simplicity, I will assume there are no newlines in the string. So for example, >>>…
Mark Galeck
  • 6,155
  • 1
  • 28
  • 55
1
vote
1 answer

detect Linebreaks, Tabs and other special characters inputed by the user with php

I have some functions where I need some parameters given by the user. The parameters are mostly characters. The Problem I have is, in PHP it is pretty easy to create linebreak- and tab-characters by typing "\n" and "\t". I want the user to be able…
Friedrich
  • 2,211
  • 20
  • 42
1
vote
2 answers

Python carriage return and thread

So I have a script that will continuously read from a sensor, print a carriage return and then the sensor value. It does this until raw_input() finishes blocking (enter pressed). However, when I run it, instead of an increasing number, I see blank…
Luke Moll
  • 428
  • 6
  • 18
1
vote
1 answer

How do I send a control character down a socket in PHP?

In a PHP script I am writing, I need to send a control+z character down a network socket I have previously created. I understand the ctrl+z character to be chr(26), so at the end of the string I am sending I have added a new line (\r\n) and then the…
JonTheNiceGuy
  • 601
  • 8
  • 23