Sponsored Content
Full Discussion: Quick VI question
Top Forums UNIX for Advanced & Expert Users Quick VI question Post 11133 by Perderabo on Thursday 29th of November 2001 10:36:23 AM
Old 11-29-2001
Quote:
Originally posted by wizard
In command mode, go to the command prompt (the :) and type
set list

This should show non-printable characters in vi.
Actually, with most versions of unix, ":set list" only affects white space. It causes tabs to show up as ^I and newlines to be marked with $.

The real problem is that some bytes could have values in the range of 128 to 255 and you may not have an 8 bit data path to your terminal. Depending on the stty settings, the MSB may be a parity bit rather than a data bit. Also not all terminals will display something for non-ascii characters. And a final problem is that, I think, vi balks at attempting to display nulls, although it will count them and display a count at startup time.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Quick Question

I know in DOS, when you want to pull up your last/previous command, you hit the up/down arrows. How do you do that with UNIX? (3 Replies)
Discussion started by: Tracy Hunt
3 Replies

2. Shell Programming and Scripting

A very quick question

Just a super quick question: how do you put a link in your php code. I want to make a link to something in /tmp directory. i.e. how do you put a href into php, I think it's done a bit differently. thanks john (1 Reply)
Discussion started by: jmg5
1 Replies

3. UNIX for Dummies Questions & Answers

Quick Question

Hello There! I am trying to write this SIMPLE script in Bourne Shell but I keep on getting syntax errors. Can you see what I am doing wrong? I've done this before but I don't see the difference. I am simply trying to take the day of the week from our system and when the teachers sign on I want... (7 Replies)
Discussion started by: catbad
7 Replies

4. UNIX for Dummies Questions & Answers

Another quick question

Hi guys sed -e "s/$<//g" the $< can allow me to assign an input value to the variable right? do the double quotes check the previous context? (1 Reply)
Discussion started by: hamoudzz
1 Replies

5. Shell Programming and Scripting

quick question

does anyone know what $? means? i echoed it on my box (running AIX Korn shell) and got 127 (2 Replies)
Discussion started by: penfold
2 Replies

6. UNIX for Dummies Questions & Answers

Quick Question

Hi, I am new to UNIX, and am learning from this tutorial : http://www.ee.surrey.ac.uk/Teaching/Unix/index.html It keeps telling me to files downloaded from the internet (like .txt files) to the directory, and I dont know how to. How do I add .txt files to my directory? Thanks. (6 Replies)
Discussion started by: IAMTHEEVILBEAN
6 Replies

7. UNIX for Dummies Questions & Answers

quick question

from command prompt I did grep two words on a same line for eg: grep abc | grep xyz and I got tht particular line, but I want to know when I vi that file how to directly search for that particular line? I appreciate if any one can provide answer, thanks in advance (2 Replies)
Discussion started by: pkolishetty
2 Replies

8. UNIX for Dummies Questions & Answers

Quick question

Hello all, Quick question from a fairly new to Unix developer. if then completedLogFile=$logfile.$(date +%Y%m%d-%H:%M:%S) mv $logfile $completedLogFile fi I understand that this portion of code is simply copying a tmp logfile to a completed logfile when a condition is true. The... (2 Replies)
Discussion started by: JohnnyBoy
2 Replies

9. UNIX for Dummies Questions & Answers

Quick question.

I'd like to list all userid's on the system that have a .bashrc file in their home directory with a command like "cat /etc/passwd | grep -f", however I'm not quite familiar with using grep. Any suggestions? (2 Replies)
Discussion started by: raidkridley
2 Replies

10. Shell Programming and Scripting

Quick question

When I have a file like this: 0084AF aj-123-a NAME Ajay NAME Kumar Engineer 015ED6 ck-345-c 020B25 ef-456-e 027458 pq-890-p NAME Peter NAME Salob Doctor 0318F0 xy-123-x NAME Xavier Arul NAME Yesu Supervisor 0344CA de-456-d where - The first NAME is followed by... (6 Replies)
Discussion started by: ajay41aj
6 Replies
gettydefs(4)						     Kernel Interfaces Manual						      gettydefs(4)

NAME
gettydefs - speed and terminal settings used by getty DESCRIPTION
The file contains information used by to set up the speed and terminal settings for a line (see getty(1M)). It supplies information on what the prompt should look like. It also supplies the speed to try next if the user indicates the current speed is not correct by typing a Break character. Each entry in has the following format: Each entry is followed by a blank line. The various fields can contain quoted characters of the form etc., as well as where nnn is the octal value of the desired character. The various fields are: label This is the string against which tries to match its second argument. It is often the speed, such as at which the terminal is supposed to run, but it need not be (see below). initial-flags These flags are the initial settings to which the terminal is to be set if a terminal type is not specified to (see ioctl(2)). The flags that understands are the same as the ones listed in (see termio(7)). Normally only the speed flag is required in the initial-flags. automatically sets the terminal to raw input mode and takes care of most of the other flags. The initial-flag settings remain in effect until executes final-flags These flags take the same values as the initial-flags and are set just before executes The speed flag is again required. The composite flag takes care of most of the other flags that need to be set so that the processor and terminal are communi- cating in a rational fashion. The other two commonly specified final-flags are so that tabs are sent to the terminal as spaces, and so that the line is hung up on the final close. login-prompt This entire field is printed as the login-prompt. Unlike the above fields where white space is ignored (a space, tab or new-line), they are included in the login-prompt field. next-label If this entry does not specify the desired speed, indicated by the user typing a Break character, searches for the entry with next-label as its label field and set up the terminal for those settings. Usually, a series of speeds are linked together in this fashion, into a closed set. For example, linked to which in turn is linked to which finally is linked to If is called without a second argument, the first entry of is used, thus making the first entry of the default entry. It is also used if cannot find the specified label. If itself is missing, there is one entry built into the command which brings up a terminal at baud. It is strongly recommended that after making or modifying it be run through with the check option to ensure that there are no errors. EXAMPLES
The following two lines show an example of 300/1200 baud toggle, which is useful for dial-up ports: The following line shows a typical 9600 baud entry for a hard-wired connection: FILES
SEE ALSO
getty(1M), login(1), ioctl(2), termio(7). gettydefs(4)
All times are GMT -4. The time now is 05:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy