473,408 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

formfeed \f, vertical tab \v usage

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.

Nov 14 '05 #1
4 18331
Greenhorn <te************@yahoo.com> wrote:
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
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #2
i am not sending it to a file, its going to the terminal, seems its not
recognizing, even the formfeed.

greenhorn.

Nov 14 '05 #3
On 5 Mar 2005 06:46:52 -0800, in comp.lang.c , "Greenhorn"
<te************@yahoo.com> wrote:
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? ).

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
Nov 14 '05 #4
On Sat, 05 Mar 2005 17:45:49 +0000,
Mark McIntyre <ma**********@spamcop.net> wrote:

On 5 Mar 2005 06:46:52 -0800, in comp.lang.c , "Greenhorn"
<te************@yahoo.com> wrote:
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 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
Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: PW | last post by:
I'm creating an ASP to print labels for a client. How do you send a formfeed to the printer ?
8
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
1
by: Kenneth | last post by:
Okay, I've been scouring Google for hours looking for a solution to this problem, but as of yet I can't find one. XHTML Transitional seems to specify that I can no longer set a table's height to...
8
by: Chun-Chieh Wang | last post by:
how does the '\f' affect output? in what situation will I use '\f' ? -- ¶À¤l¹Å½×¼Æ¾Ç®a: ¡u¼Æ¾Ç®a¤@¥Í¥u·d¨â¼ËªF¦è¡G¤£¬O·d¼Æ¾Ç´N¬O·d¤k¤H¡C ¦ý¬O§Ú¤£¬O¼Æ¾Ç®a¡K¡v
1
by: Dave Cullen | last post by:
How do I force a new page when printing with PrintDocument? I put a vbFormFeed in there after my footer and it gets ignored. Thanks Dave
3
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%;...
8
by: ayamopamo | last post by:
Hi- I am trying to center a web page. It seems like this should be very simple to do, but apparently it isn't my day. I have successfully centered the background by calling it in the css body tag:...
13
by: Bill | last post by:
Hi How can I have IE7 act correctly on that ? The rules make the link text go down when hovered. It works in FF , I had to add a hard space right after the LI tag to have OP9 work but I can't...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.