• Aucun résultat trouvé

Printer Defaults

Dans le document 3+ Open'" MS OS/2 Documentation Set (Page 106-110)

Printer Connections

Associates printers, ports, and printer drivers, and sets parameters or chooses options for them.

When you choose this command, a dialog box with lists of printer names and port names appears . You can associate a printer with a port by selecting a printer name from the first list and a port name from the second list.

The dialog box also contains command buttons labeled Names, Drivers, Setup, and Comms. When you choose any of these buttons, further dialog boxes appear. Choose the Names command button to associate a printer driver with a particular printer, add or change the name of a printer, and specify network options. Choose the Drivers command button to select a default printer driver. Choose the Setup command button to set printer-driver options. Choose the Comms command button to set parameters for a communications port.

Printer Defaults

Selects a default printer for the system and sets the values for printer time-outs.

When you choose this command, a dialog box appears, containing a list box from which you can select the name of the printer you want to make the default printer (the printer to which applications and other programs in your system send files you ask them to print).

The dialog box also contains text boxes in which you can change the length of time (in seconds) for the printer outs. The printer time-outs tell your system how long to keep trying to send a file to a printer and how long to wait before trying again if the file did not print the first time.

P

~:aF.iitti!S~f;:t'::;~~t11!~~i5!i¥.ia;~Ig§~c;m~1:~~il1f!iit:~~m:i6Ei:!fi§!5I=i@'ri!9eJiietia!!1imiS;§;~;~~lh1li:{!ii~!:!i!m::i:le!~~iijftii

Priority

Prompt

priority=absolute i dynamic

Determines how a process receives enough priority over other pro-cesses to run. To use this command, place it in your CONFIG.SYS file.

In MS OS/2, processes have three priority classes: time-critical, nor-mal, and idle-time. Each of these classes has 32 priority levels, which MS OS/2 uses to schedule processes. In the normal class, MS OS/2 may adjust the priority level dynamically (that is, according to changing circumstances) .

absolute

Prevents the system from dynamically changing the priority of processes in the normal class. The absolute setting gives all processes that are running an equal share of central-processing-unit (CPU) time.

dynamic

Instructs MS OS/2 to try to determine which process needs CPU resources most in any given interval of time (time slice). The dynamic setting gives more CPU time to the process that is run-ning in the foreground. This is the default setting. For more infor-mation about time slices, see the timeslice command.

You should use the priority command only if an application requires you to do so.

prompt [string]

Changes the prompt for the current MS OS/2 command interpreter.

This change affects only the current session.

string

Specifies the new prompt. You can specify any character string you want, or you can use any of the $x character combinations

Icommandl

Ii1

p

listed below to customize your prompt. (You can combine text and these character combinations in any'" order.) Any spaces that you type will appear as part of the prompt.

The following character combinations are available for use in cus-tomizing your prompt:

Displays the dollar-sign character ($).

Begins a new line on the screen.

Displays an ampersand (&).

Displays the pipe symbol (\).

Displays a left parenthesis [(].

Displays the current date.

Specifies the beginning of an ANSI escape code.

Displays a right parenthesis [)].

Displays the greater-than sign (».

Represents the backspace character; this erases the pre-vious character from the prompt.

Displays the Help line.

Displays the less-than sign

«).

Displays the current drive letter.

Displays the current drive letter and directory path.

Displays the equal sign (=).

Displays the current time.

Displays the MS OS/2 version number.

If you type prompt by itself, the command resets the prompt to the sys-tem default, which displays only the current drive and directory, in brackets.

Works the same way in the DOS session as described above, except that you cannot use Sa, $c, and Sf.

P

~mH;;:m!iBI:~~=mp;.t!8!!!r:.!If."~:~~~~fS!IS;!~!fS\f~m~;;iji~t§!~!~§;~~!~~mJl~ll:i.t-mI~I~i~m;~'~§f:i.~~m§ls~~r:1!~Uem!

Protectonly

Example To change your prompt so that it tells you the time on one line and the current drive and directory on the next, followed by a space and a greater-than sign, type the following:

prompt The time is $t$h$h$h$h$h$h$_$p $g

The new prompt has the following form:

The time is 13:37 C:\OS2 >

Notice that the $h characters erased the seconds and hundredths of seconds from the time display.

protectonly=yes I no

Tells MS OS/2 whether to enable the DOS session. To use this com-mand, place it in your CONFIG .SYS file.

During MS OS/2 installation, the protectonly=no command is placed in your CONFIG.SYS file so that you can run the DOS session. To set up your system to run the Presentation Manager and full-screen OS/2 sessions only, change this line to protectonly=yes.

Protshell (Protected Shell)

protshell= [drive: ] [path ]filename [arguments]

Tells MS OS/2 what user interface to use and which command inter-preter to use in a full-screen OS/2 session.

filename

Specifies the file that contains the user interface. If this file is not in the root directory of the start-up drive, you must include the drive and/or path.

Q-R

arguments

Specifies the drive, path, and filename of the MS OS/2 initializa-tion file and command interpreter. For more informainitializa-tion about these arguments, see the entry for PMSHELL.EXE.

The following line is placed in your CONFIG.SYS file during MS OS/2 installation:

protshell=c:\os2\pmshell.exe c:\os2\os2.ini c:\os2\cmd.exe

This command tells MS OS/2 to use the Presentation Manager user interface and the cmd command interpreter in full-screen OS/2 ses-sions.

This command has no effect on the DOS session.

Dans le document 3+ Open'" MS OS/2 Documentation Set (Page 106-110)