Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

NOTEPAD Utility
Format: NOTEPAD {<filename>} [PUBSCREEN=<public screen name>] [CREATEICONS=YES | ON | NO | OFF] [F | FONT=<font name>] [C | CHARSET=<character set>] [FF | FIXEDWIDTHFONT=YES | ON | NO | OFF] [NWW | NOWORDWRAP=YES | ON | NO | OFF] [TS | TABSIZE=<tab size>] [BS | BLINKSPEED=<blink speed>] [AI | AUTOINDENT=YES | ON | NO | OFF]
Template: FILES/M, PUBSCREEN/K, CREATEICONS/T, F=FONT/K, C=CHARSET/K, FF=FIXEDWIDTHFONT/T, NWW=NOWORDWRAP/T, TS=TABSIZE/N/K, BS=BLINKSPEED/N/K, AI=AUTOINDENT/T
Purpose: To edit text files (a screen editor).
Path: SYS:Utilities/NotePad
NOTEPAD is a full-screen text editor suitable for preparing source code or other text files. You can use NOTEPAD to create a new file or alter an existing one. Text is displayed on screen and can be scrolled vertically or horizontally using the mouse. To add new text, you simply type it in. To delete existing text, you either use the delete keys or cut using the mouse.

The <filename> arguments specify the file(s) you want to edit. If the file exists, it is loaded into NOTEPAD and the first few lines are displayed on screen ready for editing. If the file does not exist, NOTEPAD will create the file and present a blank screen ready for text to be entered.

The PUBSCREEN argument can be used to specify a <public screen name> where NOTEPAD will display the file(s).

If the CREATEICONS option specifies YES or ON, an icon will be created for the saved file, otherwise no icon will be created.

The F or FONT option can be used to specify a <font name> that NOTEPAD will use to display the file(s).

The C or CHARSET option can be used to specify a <character set> that NOTEPAD will use to display the file(s). Valid options are:

Amiga-1251 This character set was initially based on ISO-8859-1, it also includes ISO-8859-15 Euro sign, Numero Sign and the Windows-1251 cyrillic chars 168, 184, 192-255. (The cyrillic symbols have matched the Windows-1251 purely by accident but now play a very important role in terms of compatibility to reading the many text files that come in that format without the need to convert them).
IBM437 An extended ASCII character set with some Greek letters, mathematical symbols, and characters which can be used as elements in simple pseudo-graphics.
IBM850 A similar character set to ISO-8859-1 but some of the characters are in different code positions.
IBM852 ?
ISO-8859-1 Latin Alphabet 1. This is the most common Western encoding in use on the Web. It matches the default character set used on Windows in most Western countries. It does not match the character set used in most Western versions of the Mac OS (MacRoman), and does not match character sets commonly used in most non-Western countries. The first 127 characters (binary codes 1-127) are the same in most countries.
ISO-8859-2 Latin Alphabet 2, used in Central and Eastern Europe for Albanian, Bosnian, Croatian, Czech, English, Finnish, Hungarian, Irish, German, Polish, Romanian, Serbian (Latin transcription), Slovak, Slovenian, and Sorbian (Lusatian).
ISO-8859-3 Latin Alphabet 3, for Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, German, Italian, Maltese, Spanish, and Turkish.
ISO-8859-4 Latin Alphabet 4 for Danish, English, Estonian, Finnish, German, Greenlandic, Lappish (Sami), Latvian, Lithuanian, Norwegian, and Swedish.
ISO-8859-5 Latin/Cyrillic Alphabet for Russian and certain other languages written in the Cyrillic alphabet.
ISO-8859-6 Latin/Arabic Alphabet.
ISO-8859-7 Latin/Greek Alphabet.
ISO-8859-8 Latin/Hebrew Alphabet.
ISO-8859-9 Latin/Turkish Alphabet.
ISO-8859-10 Latin/Nordic (Sámi, Inuit, Icelandic) Alphabet.
ISO-8859-13 Latin/Baltic Rim Alphabet.
ISO-8859-14 Latin/Celtic Alphabet.
ISO-8859-15 Latin/Euro Alphabet.
ISO-8859-16 Latin/Modern for use in Albanian, Croatian, English, Finnish, French, German, Hungarian, Irish Gaelic (new orthography), Italian, Latin, Polish, Romanian, and Slovenian.
KOI8-R The second character set defined in GOST 19768-74 and generally refered to as Cyrillic ASCII.
TIS-620 The standard Thai character set used by the Kingdom of Thailand.
US-ASCII Supports only 7-bit characters.
windows-1250 MS Windows character set designed for Central Europe languages (Albanian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian (Latin), Slovak, and Slovenian).
windows-1251 MS Windows character set designed for Cyrillic languages (Azeri, Belarusian, Bulgarian, FYRO Macedonian, Kazakh, Kyrgyz, Mongolian, Russian, Serbian, Tatar, Ukrainian, and Uzbek).
windows-1252 MS Windows character set designed for Latin 1 languages (Afrikaans, Basque, Catalan, Danish, Dutch, English, Faroese, Finnish, French, Galician, German, Icelandic, Indonesian, Italian, Malay, Norwegian, Portuguese, Spanish, Swahili, and Swedish.
windows-1253 MS Windows character set designed for Greek.
windows-1254 MS Windows character set designed for Turkic languages (Azeri (Latin), Turkish, and Uzbek (Latin)).
windows-1255 MS Windows character set designed for Hebrew.
windows-1256 MS Windows character set designed for Arabic, Farsi, and Urdu.
windows-1257 MS Windows character set designed for Baltic languages (Estonian, Latvian, and Lithuanian).
windows-1258 MS Windows character set designed for Vietnamese.
X-Amiga-1251 ?
X-ATO-E2 Short Czech and Slovak Alphabet.
X-ATO-PL Short Polish Alphabet.
X-ATO-srpski ?

If the FF or FIXEDWIDTHFONT option specifies YES or ON, a fixed width font will be used, which will override <font name> if specified, otherwise a proportional font will be used.

If the NWW or NOWORDWRAP option specifies YES or ON, then the word wrapping option will be turned off, otherwise word wrap will be turned on.

The TS or TABSIZE option can be used to specify tab positions every <tab size> characters. Default is every 4 characters.

The AI or AUTOINDENT option specifies YES or ON, then automatic indentation will occur, otherwise there is no automatic indentation.

When NOTEPAD is invoked with a file the following screen displays:

The NotePad window has 9 commonly used buttons across the top, and these are repeated together with additional functions within the pull-down menus, as discussed below:

Project Menu
The Project menu provides the following options:
New Opens a new Notepad window.
Open... Brings up a requester to select a file to open.
Insert... Brings up a requester to select a file to open and insert at the current cursor location.
Save Save the previously saved file.
Save As... Brings up a requester to save as a new file.
Print... Print the current file.
Close text Closes the current file.
About... Version and copyright information about NotePad.
Iconify Iconify the current file.
Quit Quits NotePad.

Edit Menu
The Edit menu provides the following options:
Cut Moves highlighted text to the Clipboard.
Copy Copies highlighted text to the Clipboard.
Paste Copies text from the Clipboard to the current cursor location.
Erase Deletes highlighted text but does not copy it to the Clipboard.
Undo Reverses the last request.
Redo Redoes the last reversed request.
Clear all Erase all of the current text.

Navigation Menu
The Navigation menu provides the following options:
Find Search for a word or phrase.
Find Next Repeat the previous Find request.
Replace Replace the searched for word or phase with another.
Jump Jumps to the specified character position.

Settings Menu
The Settings menu provides the following options:
Create icons If ticked, NotePad will automatically create icons for saved files.
Auto indentation If ticked, NotePad will perform automatic indentation.
Select font... Brings up a font requester which enables you to select a font for displaying the entire file.
Save Settings Enables you save the settings for the next invocation of NotePad.

Example 1:

3.OS4:> NOTEPAD mytext starts up NOTEPAD and loads the text file mytext for editing.

Example 2:

3.OS4:> NOTEPAD mytext1 mytext2 FIXEDWIDTHFONT ON TABSIZE 10 starts up two windows for NOTEPAD and loads the file mytext1 into one and mytext2 into the other for editing. The text will displayed using a fixed font and the tabs will be set to every 10 characters.

See Also: ED, EDIT, MeMacs


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright © 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.