Mercurial > emacs
comparison man/msdog-xtra.texi @ 70465:5bed914b8a89
(MS-DOS, MS-DOS Keyboard, MS-DOS Mouse)
(MS-DOS Display, MS-DOS File Names, MS-DOS Printing)
(MS-DOS and MULE, MS-DOS Processes) [ifnottex]: Conditional xref's for on-line
manual.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 06 May 2006 14:12:15 +0000 |
parents | a6e9a00b021b |
children | 01e158ca557c |
comparison
equal
deleted
inserted
replaced
70464:35a93621d68f | 70465:5bed914b8a89 |
---|---|
9 @cindex MS-DOG | 9 @cindex MS-DOG |
10 @cindex MS-DOS peculiarities | 10 @cindex MS-DOS peculiarities |
11 | 11 |
12 This section briefly describes the peculiarities of using Emacs on | 12 This section briefly describes the peculiarities of using Emacs on |
13 the MS-DOS ``operating system'' (also known as ``MS-DOG''). | 13 the MS-DOS ``operating system'' (also known as ``MS-DOG''). |
14 @iftex | |
14 Information about Emacs and Microsoft's current operating system | 15 Information about Emacs and Microsoft's current operating system |
15 Windows (also known as ``Losedows) is in the main Emacs manual | 16 Windows (also known as ``Losedows) is in the main Emacs manual |
16 (@pxref{Microsoft Systems,,, emacs, the Emacs Manual}). | 17 (@pxref{Microsoft Systems,,, emacs, the Emacs Manual}). |
18 @end iftex | |
19 @ifnottex | |
20 Information about peculiarities common to MS-DOS and Microsoft's | |
21 current operating systems Windows (also known as ``Losedows) is in | |
22 @ref{Microsoft Windows}. | |
23 @end ifnottex | |
17 | 24 |
18 If you build Emacs for MS-DOS, the binary will also run on Windows | 25 If you build Emacs for MS-DOS, the binary will also run on Windows |
19 3.X, Windows NT, Windows 9X/ME, Windows 2000, or OS/2 as a DOS | 26 3.X, Windows NT, Windows 9X/ME, Windows 2000, or OS/2 as a DOS |
20 application; all of this chapter applies for all of those systems, if | 27 application; all of this chapter applies for all of those systems, if |
21 you use an Emacs that was built for MS-DOS. | 28 you use an Emacs that was built for MS-DOS. |
22 | 29 |
30 @iftex | |
23 @xref{Text and Binary,,,emacs, the Emacs Manual}, for information | 31 @xref{Text and Binary,,,emacs, the Emacs Manual}, for information |
24 about Emacs' special handling of text files under MS-DOS (and | 32 @end iftex |
25 Windows). | 33 @ifnottex |
34 @xref{Text and Binary}, for information | |
35 @end ifnottex | |
36 about Emacs' special handling of text files under MS-DOS (and Windows). | |
26 | 37 |
27 @menu | 38 @menu |
28 * Keyboard: MS-DOS Keyboard. Keyboard conventions on MS-DOS. | 39 * Keyboard: MS-DOS Keyboard. Keyboard conventions on MS-DOS. |
29 * Mouse: MS-DOS Mouse. Mouse conventions on MS-DOS. | 40 * Mouse: MS-DOS Mouse. Mouse conventions on MS-DOS. |
30 * Display: MS-DOS Display. Fonts, frames and display size on MS-DOS. | 41 * Display: MS-DOS Display. Fonts, frames and display size on MS-DOS. |
50 @cindex quitting on MS-DOS | 61 @cindex quitting on MS-DOS |
51 Emacs built for MS-DOS recognizes @kbd{C-@key{BREAK}} as a quit | 62 Emacs built for MS-DOS recognizes @kbd{C-@key{BREAK}} as a quit |
52 character, just like @kbd{C-g}. This is because Emacs cannot detect | 63 character, just like @kbd{C-g}. This is because Emacs cannot detect |
53 that you have typed @kbd{C-g} until it is ready for more input. As a | 64 that you have typed @kbd{C-g} until it is ready for more input. As a |
54 consequence, you cannot use @kbd{C-g} to stop a running command | 65 consequence, you cannot use @kbd{C-g} to stop a running command |
55 (@pxref{Quitting,,,emacs, the Emacs Manual}). By contrast, | 66 @iftex |
56 @kbd{C-@key{BREAK}} @emph{is} detected as soon as you type it (as | 67 (@pxref{Quitting,,,emacs, the Emacs Manual}). |
57 @kbd{C-g} is on other systems), so it can be used to stop a running | 68 @end iftex |
58 command and for emergency escape (@pxref{Emergency Escape,,,emacs, the | 69 @ifnottex |
59 Emacs Manual}). | 70 (@pxref{Quitting}). |
71 @end ifnottex | |
72 By contrast, @kbd{C-@key{BREAK}} @emph{is} detected as soon as you | |
73 type it (as @kbd{C-g} is on other systems), so it can be used to stop | |
74 a running command and for emergency escape | |
75 @iftex | |
76 (@pxref{Emergency Escape,,,emacs, the Emacs Manual}). | |
77 @end iftex | |
78 @ifnottex | |
79 (@pxref{Emergency Escape}). | |
80 @end ifnottex | |
60 | 81 |
61 @cindex Meta (under MS-DOS) | 82 @cindex Meta (under MS-DOS) |
62 @cindex Hyper (under MS-DOS) | 83 @cindex Hyper (under MS-DOS) |
63 @cindex Super (under MS-DOS) | 84 @cindex Super (under MS-DOS) |
64 @vindex dos-super-key | 85 @vindex dos-super-key |
92 @subsection Mouse Usage on MS-DOS | 113 @subsection Mouse Usage on MS-DOS |
93 | 114 |
94 @cindex mouse support under MS-DOS | 115 @cindex mouse support under MS-DOS |
95 Emacs on MS-DOS supports a mouse (on the default terminal only). | 116 Emacs on MS-DOS supports a mouse (on the default terminal only). |
96 The mouse commands work as documented, including those that use menus | 117 The mouse commands work as documented, including those that use menus |
97 and the menu bar (@pxref{Menu Bar,,,emacs, the Emacs Manual}). Scroll | 118 and the menu bar |
98 bars don't work in MS-DOS Emacs. PC mice usually have only two | 119 @iftex |
99 buttons; these act as @kbd{Mouse-1} and @kbd{Mouse-2}, but if you | 120 (@pxref{Menu Bar,,,emacs, the Emacs Manual}). |
121 @end iftex | |
122 @ifnottex | |
123 (@pxref{Menu Bar}). | |
124 @end ifnottex | |
125 Scroll bars don't work in MS-DOS Emacs. PC mice usually have only | |
126 two buttons; these act as @kbd{Mouse-1} and @kbd{Mouse-2}, but if you | |
100 press both of them together, that has the effect of @kbd{Mouse-3}. If | 127 press both of them together, that has the effect of @kbd{Mouse-3}. If |
101 the mouse does have 3 buttons, Emacs detects that at startup, and all | 128 the mouse does have 3 buttons, Emacs detects that at startup, and all |
102 the 3 buttons function normally, as on X. | 129 the 3 buttons function normally, as on X. |
103 | 130 |
104 Help strings for menu-bar and pop-up menus are displayed in the echo | 131 Help strings for menu-bar and pop-up menus are displayed in the echo |
105 area when the mouse pointer moves across the menu items. Highlighting | 132 area when the mouse pointer moves across the menu items. Highlighting |
106 of mouse-sensitive text (@pxref{Mouse References,,,emacs, the Emacs | 133 of mouse-sensitive text |
107 Manual}) is also supported. | 134 @iftex |
135 (@pxref{Mouse References,,,emacs, the Emacs Manual}) | |
136 @end iftex | |
137 @ifnottex | |
138 (@pxref{Mouse References}) | |
139 @end ifnottex | |
140 is also supported. | |
108 | 141 |
109 @cindex mouse, set number of buttons | 142 @cindex mouse, set number of buttons |
110 @findex msdos-set-mouse-buttons | 143 @findex msdos-set-mouse-buttons |
111 Some versions of mouse drivers don't report the number of mouse | 144 Some versions of mouse drivers don't report the number of mouse |
112 buttons correctly. For example, mice with a wheel report that they | 145 buttons correctly. For example, mice with a wheel report that they |
124 | 157 |
125 @cindex Windows clipboard support | 158 @cindex Windows clipboard support |
126 Emacs built for MS-DOS supports clipboard operations when it runs on | 159 Emacs built for MS-DOS supports clipboard operations when it runs on |
127 Windows. Commands that put text on the kill ring, or yank text from | 160 Windows. Commands that put text on the kill ring, or yank text from |
128 the ring, check the Windows clipboard first, just as Emacs does on the | 161 the ring, check the Windows clipboard first, just as Emacs does on the |
129 X Window System (@pxref{Mouse Commands,,,emacs, the Emacs Manual}). | 162 X Window System |
163 @iftex | |
164 (@pxref{Mouse Commands,,,emacs, the Emacs Manual}). | |
165 @end iftex | |
166 @ifnottex | |
167 (@pxref{Mouse Commands}). | |
168 @end ifnottex | |
130 Only the primary selection and the cut buffer are supported by MS-DOS | 169 Only the primary selection and the cut buffer are supported by MS-DOS |
131 Emacs on Windows; the secondary selection always appears as empty. | 170 Emacs on Windows; the secondary selection always appears as empty. |
132 | 171 |
133 Due to the way clipboard access is implemented by Windows, the | 172 Due to the way clipboard access is implemented by Windows, the |
134 length of text you can put into the clipboard is limited by the amount | 173 length of text you can put into the clipboard is limited by the amount |
156 Display on MS-DOS cannot use font variants, like bold or italic, but | 195 Display on MS-DOS cannot use font variants, like bold or italic, but |
157 it does support multiple faces, each of which can specify a foreground | 196 it does support multiple faces, each of which can specify a foreground |
158 and a background color. Therefore, you can get the full functionality | 197 and a background color. Therefore, you can get the full functionality |
159 of Emacs packages that use fonts (such as @code{font-lock}, Enriched | 198 of Emacs packages that use fonts (such as @code{font-lock}, Enriched |
160 Text mode, and others) by defining the relevant faces to use different | 199 Text mode, and others) by defining the relevant faces to use different |
161 colors. Use the @code{list-colors-display} command (@pxref{Frame | 200 colors. Use the @code{list-colors-display} command |
162 Parameters,,,emacs, the Emacs Manual}) and the | 201 @iftex |
163 @code{list-faces-display} command (@pxref{Faces,,,emacs, the Emacs | 202 (@pxref{Frame Parameters,,,emacs, the Emacs Manual}) |
164 Manual}) to see what colors and faces are available and what they look | 203 @end iftex |
165 like. | 204 @ifnottex |
205 (@pxref{Frame Parameters}) | |
206 @end ifnottex | |
207 and the @code{list-faces-display} command | |
208 @iftex | |
209 (@pxref{Faces,,,emacs, the Emacs Manual}) | |
210 @end iftex | |
211 @ifnottex | |
212 (@pxref{Faces}) | |
213 @end ifnottex | |
214 to see what colors and faces are available and what they look like. | |
166 | 215 |
167 @xref{MS-DOS and MULE}, later in this chapter, for information on | 216 @xref{MS-DOS and MULE}, later in this chapter, for information on |
168 how Emacs displays glyphs and characters that aren't supported by the | 217 how Emacs displays glyphs and characters that aren't supported by the |
169 native font built into the DOS display. | 218 native font built into the DOS display. |
170 | 219 |
171 @cindex cursor shape on MS-DOS | 220 @cindex cursor shape on MS-DOS |
172 When Emacs starts, it changes the cursor shape to a solid box. This | 221 When Emacs starts, it changes the cursor shape to a solid box. This |
173 is for compatibility with other systems, where the box cursor is the | 222 is for compatibility with other systems, where the box cursor is the |
174 default in Emacs. This default shape can be changed to a bar by | 223 default in Emacs. This default shape can be changed to a bar by |
175 specifying the @code{cursor-type} parameter in the variable | 224 specifying the @code{cursor-type} parameter in the variable |
176 @code{default-frame-alist} (@pxref{Creating Frames,,,emacs, the Emacs | 225 @code{default-frame-alist} |
177 Manual}). The MS-DOS terminal doesn't support a vertical-bar cursor, | 226 @iftex |
227 (@pxref{Creating Frames,,,emacs, the Emacs Manual}). | |
228 @end iftex | |
229 @ifnottex | |
230 (@pxref{Creating Frames}). | |
231 @end ifnottex | |
232 The MS-DOS terminal doesn't support a vertical-bar cursor, | |
178 so the bar cursor is horizontal, and the @code{@var{width}} parameter, | 233 so the bar cursor is horizontal, and the @code{@var{width}} parameter, |
179 if specified by the frame parameters, actually determines its height. | 234 if specified by the frame parameters, actually determines its height. |
180 For this reason, the @code{bar} and @code{hbar} cursor types produce | 235 For this reason, the @code{bar} and @code{hbar} cursor types produce |
181 the same effect on MS-DOS. As an extension, the bar cursor | 236 the same effect on MS-DOS. As an extension, the bar cursor |
182 specification can include the starting scan line of the cursor as well | 237 specification can include the starting scan line of the cursor as well |
191 begins at the top of the character cell. | 246 begins at the top of the character cell. |
192 | 247 |
193 @cindex frames on MS-DOS | 248 @cindex frames on MS-DOS |
194 The MS-DOS terminal can only display a single frame at a time. The | 249 The MS-DOS terminal can only display a single frame at a time. The |
195 Emacs frame facilities work on MS-DOS much as they do on text-only | 250 Emacs frame facilities work on MS-DOS much as they do on text-only |
196 terminals (@pxref{Frames,,,emacs, the Emacs Manual}). When you run | 251 terminals |
197 Emacs from a DOS window on MS-Windows, you can make the visible frame | 252 @iftex |
198 smaller than the full screen, but Emacs still cannot display more than | 253 (@pxref{Frames,,,emacs, the Emacs Manual}). |
199 a single frame at a time. | 254 @end iftex |
255 @ifnottex | |
256 (@pxref{Frames}). | |
257 @end ifnottex | |
258 When you run Emacs from a DOS window on MS-Windows, you can make the | |
259 visible frame smaller than the full screen, but Emacs still cannot | |
260 display more than a single frame at a time. | |
200 | 261 |
201 @cindex frame size under MS-DOS | 262 @cindex frame size under MS-DOS |
202 @findex mode4350 | 263 @findex mode4350 |
203 @findex mode25 | 264 @findex mode25 |
204 The @code{mode4350} command switches the display to 43 or 50 | 265 The @code{mode4350} command switches the display to 43 or 50 |
251 characters, plus optionally a period and three more characters. Emacs | 312 characters, plus optionally a period and three more characters. Emacs |
252 knows enough about these limitations to handle file names that were | 313 knows enough about these limitations to handle file names that were |
253 meant for other operating systems. For instance, leading dots | 314 meant for other operating systems. For instance, leading dots |
254 @samp{.} in file names are invalid in MS-DOS, so Emacs transparently | 315 @samp{.} in file names are invalid in MS-DOS, so Emacs transparently |
255 converts them to underscores @samp{_}; thus your default init file | 316 converts them to underscores @samp{_}; thus your default init file |
256 (@pxref{Init File,,,emacs, the Emacs Manual}) is called @file{_emacs} | 317 @iftex |
257 on MS-DOS. Excess characters before or after the period are generally | 318 (@pxref{Init File,,,emacs, the Emacs Manual}) |
258 ignored by MS-DOS itself; thus, if you visit the file | 319 @end iftex |
259 @file{LongFileName.EvenLongerExtension}, you will silently get | 320 @ifnottex |
260 @file{longfile.eve}, but Emacs will still display the long file name | 321 (@pxref{Init File}) |
261 on the mode line. Other than that, it's up to you to specify file | 322 @end ifnottex |
262 names which are valid under MS-DOS; the transparent conversion as | 323 is called @file{_emacs} on MS-DOS. Excess characters before or after |
324 the period are generally ignored by MS-DOS itself; thus, if you visit | |
325 the file @file{LongFileName.EvenLongerExtension}, you will silently | |
326 get @file{longfile.eve}, but Emacs will still display the long file | |
327 name on the mode line. Other than that, it's up to you to specify | |
328 file names which are valid under MS-DOS; the transparent conversion as | |
263 described above only works on file names built into Emacs. | 329 described above only works on file names built into Emacs. |
264 | 330 |
265 @cindex backup file names on MS-DOS | 331 @cindex backup file names on MS-DOS |
266 The above restrictions on the file names on MS-DOS make it almost | 332 The above restrictions on the file names on MS-DOS make it almost |
267 impossible to construct the name of a backup file (@pxref{Backup | 333 impossible to construct the name of a backup file |
268 Names,,,emacs, the Emacs Manual}) without losing some of the original | 334 @iftex |
269 file name characters. For example, the name of a backup file for | 335 (@pxref{Backup Names,,,emacs, the Emacs Manual}) |
270 @file{docs.txt} is @file{docs.tx~} even if single backup is used. | 336 @end iftex |
337 @ifnottex | |
338 (@pxref{Backup Names}) | |
339 @end ifnottex | |
340 without losing some of the original file name characters. For | |
341 example, the name of a backup file for @file{docs.txt} is | |
342 @file{docs.tx~} even if single backup is used. | |
271 | 343 |
272 @cindex file names under Windows 95/NT | 344 @cindex file names under Windows 95/NT |
273 @cindex long file names in DOS box under Windows 95/NT | 345 @cindex long file names in DOS box under Windows 95/NT |
274 If you run Emacs as a DOS application under Windows 9X, Windows ME, or | 346 If you run Emacs as a DOS application under Windows 9X, Windows ME, or |
275 Windows 2000, you can turn on support for long file names. If you do | 347 Windows 2000, you can turn on support for long file names. If you do |
299 | 371 |
300 @node MS-DOS Printing | 372 @node MS-DOS Printing |
301 @subsection Printing and MS-DOS | 373 @subsection Printing and MS-DOS |
302 | 374 |
303 Printing commands, such as @code{lpr-buffer} | 375 Printing commands, such as @code{lpr-buffer} |
304 (@pxref{Printing,,,emacs, the Emacs Manual}) and | 376 @iftex |
305 @code{ps-print-buffer} (@pxref{PostScript,,,emacs, the Emacs Manual}) | 377 (@pxref{Printing,,,emacs, the Emacs Manual}) and @code{ps-print-buffer} |
378 (@pxref{PostScript,,,emacs, the Emacs Manual}) | |
379 @end iftex | |
380 @ifnottex | |
381 (@pxref{Printing}) and @code{ps-print-buffer} (@pxref{PostScript}) | |
382 @end ifnottex | |
306 can work on MS-DOS by sending the output to one of the printer ports, | 383 can work on MS-DOS by sending the output to one of the printer ports, |
307 if a Posix-style @code{lpr} program is unavailable. The same Emacs | 384 if a Posix-style @code{lpr} program is unavailable. The same Emacs |
308 variables control printing on all systems, but in some cases they have | 385 variables control printing on all systems, but in some cases they have |
309 different default values on MS-DOS. | 386 different default values on MS-DOS. |
310 | 387 |
311 @xref{MS-Windows Printing,,,emacs, the Emacs Manual}, for details. | 388 @iftex |
389 @xref{Windows Printing,,,emacs, the Emacs Manual}, | |
390 @end iftex | |
391 @ifnottex | |
392 @xref{Windows Printing}, | |
393 @end ifnottex | |
394 for details about setting up printing to a networked printer. | |
312 | 395 |
313 Some printers expect DOS codepage encoding of non-@acronym{ASCII} text, even | 396 Some printers expect DOS codepage encoding of non-@acronym{ASCII} text, even |
314 though they are connected to a Windows machine which uses a different | 397 though they are connected to a Windows machine which uses a different |
315 encoding for the same locale. For example, in the Latin-1 locale, DOS | 398 encoding for the same locale. For example, in the Latin-1 locale, DOS |
316 uses codepage 850 whereas Windows uses codepage 1252. @xref{MS-DOS and | 399 uses codepage 850 whereas Windows uses codepage 1252. @xref{MS-DOS and |
332 @node MS-DOS and MULE | 415 @node MS-DOS and MULE |
333 @subsection International Support on MS-DOS | 416 @subsection International Support on MS-DOS |
334 @cindex international support @r{(MS-DOS)} | 417 @cindex international support @r{(MS-DOS)} |
335 | 418 |
336 Emacs on MS-DOS supports the same international character sets as it | 419 Emacs on MS-DOS supports the same international character sets as it |
337 does on GNU, Unix and other platforms (@pxref{International,,,emacs, | 420 does on GNU, Unix and other platforms |
338 the Emacs Manual}), including coding systems for converting between | 421 @iftex |
339 the different character sets. However, due to incompatibilities | 422 (@pxref{International,,,emacs, the Emacs Manual}), |
340 between MS-DOS/MS-Windows and other systems, there are several | 423 @end iftex |
341 DOS-specific aspects of this support that you should be aware of. | 424 @ifnottex |
342 This section describes these aspects. | 425 (@pxref{International}), |
426 @end ifnottex | |
427 including coding systems for converting between the different | |
428 character sets. However, due to incompatibilities between | |
429 MS-DOS/MS-Windows and other systems, there are several DOS-specific | |
430 aspects of this support that you should be aware of. This section | |
431 describes these aspects. | |
343 | 432 |
344 The description below is largely specific to the MS-DOS port of | 433 The description below is largely specific to the MS-DOS port of |
345 Emacs, especially where it talks about practical implications for | 434 Emacs, especially where it talks about practical implications for |
346 Emacs users. For other operating systems, see the @file{code-pages.el} | 435 Emacs users. For other operating systems, see the @file{code-pages.el} |
347 package, which implements support for MS-DOS- and MS-Windows-specific | 436 package, which implements support for MS-DOS- and MS-Windows-specific |
378 behaves.}. Much the same limitation applies when you run DOS | 467 behaves.}. Much the same limitation applies when you run DOS |
379 executables on other systems such as MS-Windows. | 468 executables on other systems such as MS-Windows. |
380 | 469 |
381 @cindex unibyte operation @r{(MS-DOS)} | 470 @cindex unibyte operation @r{(MS-DOS)} |
382 If you invoke Emacs on MS-DOS with the @samp{--unibyte} option | 471 If you invoke Emacs on MS-DOS with the @samp{--unibyte} option |
383 (@pxref{Initial Options,,,emacs, the Emacs Manual}), Emacs does not | 472 @iftex |
384 perform any conversion of non-@acronym{ASCII} characters. Instead, it | 473 (@pxref{Initial Options,,,emacs, the Emacs Manual}), |
385 reads and writes any non-@acronym{ASCII} characters verbatim, and | 474 @end iftex |
386 sends their 8-bit codes to the display verbatim. Thus, unibyte Emacs | 475 @ifnottex |
387 on MS-DOS supports the current codepage, whatever it may be, but | 476 (@pxref{Initial Options}), |
388 cannot even represent any other characters. | 477 @end ifnottex |
478 Emacs does not perform any conversion of non-@acronym{ASCII} | |
479 characters. Instead, it reads and writes any non-@acronym{ASCII} | |
480 characters verbatim, and sends their 8-bit codes to the display | |
481 verbatim. Thus, unibyte Emacs on MS-DOS supports the current | |
482 codepage, whatever it may be, but cannot even represent any other | |
483 characters. | |
389 | 484 |
390 @vindex dos-codepage | 485 @vindex dos-codepage |
391 For multibyte operation on MS-DOS, Emacs needs to know which | 486 For multibyte operation on MS-DOS, Emacs needs to know which |
392 characters the chosen DOS codepage can display. So it queries the | 487 characters the chosen DOS codepage can display. So it queries the |
393 system shortly after startup to get the chosen codepage number, and | 488 system shortly after startup to get the chosen codepage number, and |
424 @cindex mode line @r{(MS-DOS)} | 519 @cindex mode line @r{(MS-DOS)} |
425 All the @code{cp@var{nnn}} coding systems use the letter @samp{D} | 520 All the @code{cp@var{nnn}} coding systems use the letter @samp{D} |
426 (for ``DOS'') as their mode-line mnemonic. Since both the terminal | 521 (for ``DOS'') as their mode-line mnemonic. Since both the terminal |
427 coding system and the default coding system for file I/O are set to | 522 coding system and the default coding system for file I/O are set to |
428 the proper @code{cp@var{nnn}} coding system at startup, it is normal | 523 the proper @code{cp@var{nnn}} coding system at startup, it is normal |
429 for the mode line on MS-DOS to begin with @samp{-DD\-}. @xref{Mode | 524 for the mode line on MS-DOS to begin with @samp{-DD\-}. |
430 Line,,,emacs, the Emacs Manual}. Far-Eastern DOS terminals do not use | 525 @iftex |
431 the @code{cp@var{nnn}} coding systems, and thus their initial mode | 526 @xref{Mode Line,,,emacs, the Emacs Manual}. |
432 line looks like the Emacs default. | 527 @end iftex |
528 @ifnottex | |
529 @xref{Mode Line}. | |
530 @end ifnottex | |
531 Far-Eastern DOS terminals do not use the @code{cp@var{nnn}} coding | |
532 systems, and thus their initial mode line looks like the Emacs | |
533 default. | |
433 | 534 |
434 Since the codepage number also indicates which script you are using, | 535 Since the codepage number also indicates which script you are using, |
435 Emacs automatically runs @code{set-language-environment} to select the | 536 Emacs automatically runs @code{set-language-environment} to select the |
436 language environment for that script (@pxref{Language | 537 language environment for that script |
437 Environments,,,emacs, the Emacs Manual}). | 538 @iftex |
539 (@pxref{Language Environments,,,emacs, the Emacs Manual}). | |
540 @end iftex | |
541 @ifnottex | |
542 (@pxref{Language Environments}). | |
543 @end ifnottex | |
438 | 544 |
439 If a buffer contains a character belonging to some other ISO 8859 | 545 If a buffer contains a character belonging to some other ISO 8859 |
440 character set, not the one that the chosen DOS codepage supports, Emacs | 546 character set, not the one that the chosen DOS codepage supports, Emacs |
441 displays it using a sequence of @acronym{ASCII} characters. For example, if the | 547 displays it using a sequence of @acronym{ASCII} characters. For example, if the |
442 current codepage doesn't have a glyph for the letter @samp{@`o} (small | 548 current codepage doesn't have a glyph for the letter @samp{@`o} (small |
465 Emacs supports many other characters sets aside from ISO 8859, but it | 571 Emacs supports many other characters sets aside from ISO 8859, but it |
466 cannot display them on MS-DOS. So if one of these multibyte characters | 572 cannot display them on MS-DOS. So if one of these multibyte characters |
467 appears in a buffer, Emacs on MS-DOS displays them as specified by the | 573 appears in a buffer, Emacs on MS-DOS displays them as specified by the |
468 @code{dos-unsupported-character-glyph} variable; by default, this glyph | 574 @code{dos-unsupported-character-glyph} variable; by default, this glyph |
469 is an empty triangle. Use the @kbd{C-u C-x =} command to display the | 575 is an empty triangle. Use the @kbd{C-u C-x =} command to display the |
470 actual code and character set of such characters. @xref{Position | 576 actual code and character set of such characters. |
471 Info,,,emacs, the Emacs Manual}. | 577 @iftex |
578 @xref{Position Info,,,emacs, the Emacs Manual}. | |
579 @end iftex | |
580 @ifnottex | |
581 @xref{Position Info}. | |
582 @end ifnottex | |
472 | 583 |
473 @findex codepage-setup | 584 @findex codepage-setup |
474 By default, Emacs defines a coding system to support the current | 585 By default, Emacs defines a coding system to support the current |
475 codepage. To define a coding system for some other codepage (e.g., to | 586 codepage. To define a coding system for some other codepage (e.g., to |
476 visit a file written on a DOS machine in another country), use the | 587 visit a file written on a DOS machine in another country), use the |
477 @kbd{M-x codepage-setup} command. It prompts for the 3-digit code of | 588 @kbd{M-x codepage-setup} command. It prompts for the 3-digit code of |
478 the codepage, with completion, then creates the coding system for the | 589 the codepage, with completion, then creates the coding system for the |
479 specified codepage. You can then use the new coding system to read and | 590 specified codepage. You can then use the new coding system to read and |
480 write files, but you must specify it explicitly for the file command | 591 write files, but you must specify it explicitly for the file command |
481 when you want to use it (@pxref{Text Coding,,,emacs, the Emacs Manual}). | 592 when you want to use it |
593 @iftex | |
594 (@pxref{Text Coding,,,emacs, the Emacs Manual}). | |
595 @end iftex | |
596 @ifnottex | |
597 (@pxref{Text Coding}). | |
598 @end ifnottex | |
482 | 599 |
483 These coding systems are also useful for visiting a file encoded using | 600 These coding systems are also useful for visiting a file encoded using |
484 a DOS codepage, using Emacs running on some other operating system. | 601 a DOS codepage, using Emacs running on some other operating system. |
485 | 602 |
486 @cindex MS-Windows codepages | 603 @cindex MS-Windows codepages |
520 Instead of the Shell mode, which doesn't work on MS-DOS, you can use | 637 Instead of the Shell mode, which doesn't work on MS-DOS, you can use |
521 the @kbd{M-x eshell} command. This invokes the Eshell package that | 638 the @kbd{M-x eshell} command. This invokes the Eshell package that |
522 implements a Posix-like shell entirely in Emacs Lisp. | 639 implements a Posix-like shell entirely in Emacs Lisp. |
523 | 640 |
524 By contrast, Emacs compiled as a native Windows application | 641 By contrast, Emacs compiled as a native Windows application |
525 @strong{does} support asynchronous subprocesses. @xref{Windows | 642 @strong{does} support asynchronous subprocesses. |
526 Processes,,,emacs, the Emacs Manual}. | 643 @iftex |
644 @xref{Windows Processes,,,emacs, the Emacs Manual}. | |
645 @end iftex | |
646 @ifnottex | |
647 @xref{Windows Processes}. | |
648 @end ifnottex | |
527 | 649 |
528 @cindex printing under MS-DOS | 650 @cindex printing under MS-DOS |
529 Printing commands, such as @code{lpr-buffer} | 651 Printing commands, such as @code{lpr-buffer} |
652 @iftex | |
530 (@pxref{Printing,,,emacs, the Emacs Manual}) and | 653 (@pxref{Printing,,,emacs, the Emacs Manual}) and |
531 @code{ps-print-buffer} (@pxref{PostScript,,,emacs, the Emacs Manual}), | 654 @code{ps-print-buffer} (@pxref{PostScript,,,emacs, the Emacs Manual}), |
532 work in MS-DOS by sending the output to one of the printer ports. | 655 work in MS-DOS by sending the output to one of the printer ports. |
533 @xref{MS-DOS Printing,,,emacs, the Emacs Manual}. | 656 @xref{MS-DOS Printing,,,emacs, the Emacs Manual}. |
657 @end iftex | |
658 @ifnottex | |
659 (@pxref{Printing}) and @code{ps-print-buffer} (@pxref{PostScript}), | |
660 work in MS-DOS by sending the output to one of the printer ports. | |
661 @xref{MS-DOS Printing}. | |
662 @end ifnottex | |
534 | 663 |
535 When you run a subprocess synchronously on MS-DOS, make sure the | 664 When you run a subprocess synchronously on MS-DOS, make sure the |
536 program terminates and does not try to read keyboard input. If the | 665 program terminates and does not try to read keyboard input. If the |
537 program does not terminate on its own, you will be unable to terminate | 666 program does not terminate on its own, you will be unable to terminate |
538 it, because MS-DOS provides no general way to terminate a process. | 667 it, because MS-DOS provides no general way to terminate a process. |