Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Entering Printer Control Codes in VI

Status
Not open for further replies.

ivessm

Programmer
Nov 30, 2003
32
US
This is something I have never had to do in the past but now can't figure out how to do it. I have searched many reference files for info and have come up blank.

I need to create a file of printer control codes to then send to the printer for papaer path changes. The question is: How do I enter control codes in vi??

The specific codes are: 027 025 048 (Yes, 048 is ACSII Zero)

Many thangs for any help on this.

stew
 
Press (in insert mode) Ctrl-V and then the key you want. For example to insert an escape character type: Ctrl-V ESC

Theophilos.

-----------

There are only 10 kinds of people: Those who understand binary and those who don't.
 
Many thanks Theophilos. It works!!

stew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top