formfeed \f, vertical tab \v usage

G

Greenhorn

Hi,
Can i know how formfeed exactly works,
also vertical tab, i have used vertical tab with printf() as shown
below:

printf("This is the \v line");

the output:
This is the ♂ line

greenhorn.
 
J

Jens.Toerring

Greenhorn said:
Can i know how formfeed exactly works,
also vertical tab, i have used vertical tab with printf() as shown
below:
printf("This is the \v line");
the output:
This is the ??? line

Looks as if your terminal (or wherever the output goes to) doesn't
understand the special character created by '\v'. I get

This is the
line

Or are you perhaps sending the output to a file and then use a viewer
that does not interpret the '\v' character as a vertical tab?

Regards, Jens
 
G

Greenhorn

i am not sending it to a file, its going to the terminal, seems its not
recognizing, even the formfeed.

greenhorn.
 
M

Mark McIntyre

i am not sending it to a file, its going to the terminal, seems its not
recognizing, even the formfeed.

Its worth considering what "formfeed" means - think paper forms.

In any events, the way that escape sequences are interpreted is dependent
on your output device hardware. Some hardware can't do some things (how to
backspace on a teletype? how to go up one line on a single-line display?
how to formfeed a VDU? ).
 
V

Villy Kruse

Its worth considering what "formfeed" means - think paper forms.


In the old times there were printer where you could define vertical
tab positions, for example on line 20 and line 50. The vertical tab
character would then cause the printer to move to the next vertical
tab position, which could be line number 50 if the current line is
greater than 20. With todays printers you can use the escape
character followed by some magic other characters to cause the same
action.


Villy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top