up arrow character


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers up arrow character
# 1  
Old 10-13-2008
up arrow character

Hello everybody,
I am new to Unix.
I am using and application that uses the rlpr print command to print from Unix and i have noticed sth strange, and i have no idea about it.
When the application generates a file that start with the up arrow key character, the rlpr command prints an empty sheet.When i manually remove the up arrow character from the file and execute the rlpr command again, the file prints correctly.

What does the up arrow key mean to the print command?
# 2  
Old 10-16-2008
... It means 'page feed' or 'next page'. Similar to the idea's of 'carriage return' & 'line feed'. Back in the old days, line-printers (like dot-matrix etc.) would interpret these char's in the same way as a terminal and render them accordingly. This might still be true, I'm not sure.

Also be aware that the 'up arrow character' can be displayed as something different on different computers / software, but it's underlying ASCII code is always the same. I believe it's ASCII 24 that you're talking about (ASCII 0 is NULL); as a test, try sending ASCII 9 to the printer (TAB character) or 10 (Line-feed - should print a blank line) or 13 (Carriage-return - makes the printer start from the left of the line). All ASCII characters < 32 are classed as 'non-printable' characters in most software, that's why they display wierdly or have different effects.

Hope this helps...

Last edited by dan-e; 10-16-2008 at 02:32 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Arrow keys binding in AIX v5.3 - how?

Would somebody advise how arrow keys could be binded in AIX v5.3? I could not find reasonable information online related to AIX. I've meat advises to define: alias __A=$'\020' # or the same: alias __A=$(echo "\020") alias __B=$'\016' alias __C=$'\006' alias __D=$'\002' But it does... (2 Replies)
Discussion started by: alex_5161
2 Replies

2. UNIX for Dummies Questions & Answers

Tux-HJKL as arrow keys

I would like to configure the key combination Tux-J (Win-J) as Down Arrow, and the rest of the VIM-style movement keys as well (HKL). What is the best way to do this so that it will work in all applications? I thought about editing the keyboard layout but I'm not sure how to do that for Tux-key... (2 Replies)
Discussion started by: dotancohen
2 Replies

3. UNIX for Dummies Questions & Answers

enable up arrow key to get last cmd..

Hello all, I wanted to know how can i enable the up arrow key to go to last cmd....on any UNIX system....looks like in some of my system(linux mostly) the up arrow key work to go to last cmd....but on hp-ux or sun...the up arrow key dose not work....is there some setting i can enable at terminal... (3 Replies)
Discussion started by: abdul.irfan2
3 Replies

4. Shell Programming and Scripting

Use arrow touch in a script shell without special character

Hello, I have a problem when i execute the script underneath. If i tape azerty 123 and i use the arrow touch, in the file /tmp/test i have the caracter #!/usr/bin/ksh clear echo "Taper l adresse IP de la partition a creer :" tput cup 1 48 read Adress echo $Adress echo "${Adress}" >>... (0 Replies)
Discussion started by: khalidou13
0 Replies

5. Shell Programming and Scripting

Using arrow keys in shell scripts

I recently needed to collect arrow keys (and function keys etc.) in a shell script so that I could run a text graphics-style data entry system (with text entry fields, drop-down list boxes, progress bars and the like). Yes you can do all this in shell, and portably too if you're careful. I've... (4 Replies)
Discussion started by: cambridge
4 Replies

6. UNIX for Dummies Questions & Answers

SunOS 5.10 - VI Arrow keys not working

Hi I am working on SunOS 5.10 from remote terminal using putty. Also echo $TERM xterm In vi editor when in insert mode arrow keys are not working for cursor movement instead they print A B C and D. Please help. thanks ravs (7 Replies)
Discussion started by: ravashingravi
7 Replies

7. Solaris

Using arrow keys

Hello, I am unable to use the arrow keys in some applications. For example, in bash, I am able to use the arrow keys to to go back and forth characters in current line and search the history--I can do everything you'd expect to be able to do with the arrow keys. However, in bc, I cannot use... (4 Replies)
Discussion started by: cooldude
4 Replies

8. Shell Programming and Scripting

How to read arrow keys on really old bash?

I would like to get a script to respond to arrow key presses to scroll up and down a menu. The platform is CDLinux which uses a prehistoric version of bash, version 1.14.7. I would like to do something like "read -sn 1 keyin" but the "read" command is so primative that it only has the -r... (1 Reply)
Discussion started by: simonb
1 Replies

9. UNIX for Dummies Questions & Answers

vi down arrow key not working

i am using windows nt hummingbird 7.0 host explorer telnet emulation. I have two connections to two different unix machines. on one, the down arrow works fine in vi (it woks like the j option on the other it looks like it is giving me a new line above (like option O) and inserting a letter "B";... (2 Replies)
Discussion started by: artjaniger
2 Replies

10. Shell Programming and Scripting

Trapping Arrow keys

Hey Guys , How do we trap the arrow keys in shell programming. Or atleast can we read the ascii code of the arrow keys. I want to read the arrow keys pressed by the user and accordingly highlight the corresponding menu option. Is it possible in shell to do so ?? ... (1 Reply)
Discussion started by: nageshrc
1 Replies
Login or Register to Ask a Question