% @(#)tbledit.twh 17.1.1.1 (ESO-IPG) 01/25/02 17:44:01 %++++++++++++++++++++ %.IDENTIFICATION tbledit.twh %.AUTHOR D. Ponz %.VERSION 1.0 %.VERSION 1.1 Added the ^Z info %.LANGUAGE TeX-like %.PURPOSE Help for Table Editor %.ENVIRONMENT Midas, Tables, TermWindows %------------------- \def\eos#1{\EOF}% End of Screen \def\ul#1{{\Vu#1}}% Underline \def\LeftLine#1{\leftline{#1}}% Synonym \def\RightLine#1{\rightline{#1}}% Synonym \def\CentreLine#1{\centerline{#1}}% Synonym \def\NewWindow#1{\CheckLines{#1}}% \def\BeginLeft{\begin{left}}% \def\BeginRight{\begin{right}}% \def\BeginCentre{\begin{center}}% \def\BeginQuote{\begin{quote}}% \def\BeginItems{\begin{itemize}}% \def\BeginIndent{\begin{indent}}% \def\BeginTable#1#2{\begin{table}{#1}{#2}}% \def\EndLeft{\end{left}}% \def\EndRight{\end{right}}% \def\EndCentre{\end{center}}% \def\EndQuote{\end{quote}}% \def\EndItems{\end{itemize}}% \def\EndIndent{\end{itemize}}% \def\EndTable{\end{table}}% \def\Item{\item}% \def\LastRule{\Rule}% \def\CentreColumns#1#2{\multicolumn{#1}{c}{#2}}% \def\LeftColumns#1#2{\multicolumn{#1}{l}{#2}}% \def\RightColumns#1#2{\multicolumn{#1}{r}{#2}}% \def\Centre#1{\multicolumn{1}{c}{#1}}% \def\Left#1{\multicolumn{1}{l}{#1}}% \def\Right#1{\multicolumn{1}{r}{#1}}% \def\EndOfText{\EOF} \def\frametext#1{\begin{table}{| c |}{\len{#1}}% \Rule #1 \\ \Rule \end{table}} \Help{0}{Main}{Table Editor}{} \Help{1}{keypad}{Keypad}{} % \begin{table}{l p{4cm}}{40, } % 2-column text \begin{table}{|c|c|c|c|}{8,8,8,8} \Rule % {\em ~~~~~~} & & NEXT & DEL L \\ {\em ~GOLD~} & HELP & & \\ {\em ~~~~~~} & & {\em FIND} & {\em UNDEL L}\\ \Rule PAGE & SECTION & RIGHT P & DEL W \\ & & & ~ \\ {\em COMMAND} & {\em } & {\em LEFT P} & {\em UNDEL W}\\ \Rule ADVANCE & BACKUP & CREA COL & DEL C \\ & & & ~ \\ {\em BOTTOM} &{\em TOP}& {\em DEL COL} & {\em UNDEL C}\\ \Rule WORD & & CHANGE FM & \\ & EOL & & \\ {\em SHOW} & & {\em SORT} & ENTER \\ \crule{1-3} \CentreColumns{2}{LINE} & ROW & ~ \\ \CentreColumns{2}{ } & ~ & ~ \\ \CentreColumns{2}{\em SCREEN} & {\em STATUS} & ~ \\ \Rule \end{table} & \SkipLine Press the key to get help \SkipLine Press the {\em spacebar} to exit \end{table} \eos{} \Help{1}{line}{Keypad}{} \Rule \vfill {\em LINE } \\ Moves the cursor forward or backward to the nearest beginning of a line, depending on the current direction (see ADVANCE and BACKUP). \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{screen}{Keypad}{} \Rule \vfill {\em SCREEN } \\ Changes screen mode. Alternate modes are:\\ TABULAR, several table rows are displayed one after the other, and \\ ROW all the columns of a given row are displayed on the screen. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{word}{Keypad}{} \Rule \vfill {\em WORD } \\ Moves the cursor to the next or previous field (column) of current the page, depending on the current direction see (ADVANCE and BACKUP). \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_last_column}{Keypad}{} \Rule \vfill {\em EOL } \\ Moves the cursor to the last field (column) on the current line. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{change_format}{Keypad}{} \Rule \vfill {\em CHANGE FM } \\ Changes the display format of a field (column). The reference to the column, either by label or by number, as well as the format are entered interactivelly. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{advance}{Keypad}{} \Rule \vfill {\em ADVANCE } \\ Sets the current direction to forward for the TABULAR, LINE, PAGE, WORD and SECT keys. ADVANCE means that the movement will be toward the end of the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{bottom_of_table}{Keypad}{} \Rule \vfill {\em BOTTOM } \\ Positions the cursor in the last row of the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{backup}{Keypad}{} \Rule \vfill {\em BACKUP } \\ Sets the current direction to backward for TABULAR, LINE, PAGE, WORD and SECT keys. BACKUP means that the movement will be toward the beginning of the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{top_of_table}{Keypad}{} \Rule \vfill {\em TOP } \\ Positions the cursor in the first row of the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{create_column}{Keypad}{} \Rule \vfill {\em CREA COL } \\ Creates a new column in the table. Column label, data type and display format are entered interactivelly. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{delete_column}{Keypad}{} \Rule \vfill {\em DEL COL } \\ Deletes a column from the table. Reference to the column is by label or by number. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{page}{Keypad}{} \Rule \vfill {\em PAGE } \\ Display next (previous) page of the table depending on the current direction defined as ADVANCE or BACKUP. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{command}{Keypad}{} \Rule \vfill {\em COMMAND } \\ Allows you to enter in line mode command to be executed without exiting the keypad mode. The command is executed when you press either RETURN or ENTER on the keypad. The command mode is also activated with {\bf CNTRL Z} Possible commands are:\\ find, next, create column, delete column, \\ row, change_format, advance, backup, \\ page, section, right_page, left_page, \\ top, bottom, screen(*), show, \\ sort, status, help, exit \\ and quit. Commands marked with (*) are not yet implemented. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{section}{Keypad}{} \Rule \vfill {\em SECTION } \\ Display next (previous) section of the table depending on the current direction defined as ADVANCE or BACKUP. A section is defined as half a page. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{right_page}{Keypad}{} \Rule \vfill {\em RIGHT P } \\ Displays the following page of the table. The following page consists of the same rows as the currently displayed page and the columns following in the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{left_page}{Keypad}{} \Rule \vfill {\em LEFT P } \\ Displays the leftmost page of the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_delete_word}{Keypad}{} \Rule \vfill {\em DEL W } \\ Deletes the entry of the table where the cursor is positioned. The entry is stored in the delete entry buffer. \frametext{Not yet implemented} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_undel_word}{Keypad}{} \Rule \vfill {\em UNDEL W } \\ Replaces the entry where the cursor is currently positioned by the value stored in the delete entry buffer. \frametext{Not yet implemented} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_delete_character}{Keypad}{} \Rule \vfill {\em DEL C } \\ Deletes the character on which the cursor is positioned and saves it in the delete character buffer. \frametext{Not yet implemented} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_undel_character}{Keypad}{} \Rule \vfill {\em UNDEL C } \\ Inserts the contents of the delete character buffer directly to the left of the cursor. \frametext{Not yet implemented} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_next_line}{Keypad}{} \Rule \vfill {\em ENTER } \\ ENTER and RETURN are used to input interactivelly information to the editor. The interactive input is required by the commands CREA COL, DEL COL, CHANGE FM, FIND and COMMAND. \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{row}{Keypad}{} \Rule \vfill {\em ROW } \\ Displays the given row. Rows are defined by the absolute row number, or by the relative (sign + or -) displacement with respect to the current cursor position. \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{gold}{Keypad}{} \Rule \vfill {\em GOLD } \\ Lets you use the lower (alternate) function of the editing keys. Press the GOLD key, then the key you wish to use. \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{next}{Keypad}{} \Rule \vfill {\em NEXT } \\ Searches for the next entry value previously entered with the FIND key. The column and the starting row are defined by the current pointer position. The search is done in the direction of increasing row numbers. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{find}{Keypad}{} \Rule \vfill {\em FIND } \\ Searches for a value in a column of the table. The column and the starting row are defined by the current pointer position. The value and the error allowed in the search are entered interactivelly. The search is done in the direction of increasing row numbers. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_delete_line}{Keypad}{} \Rule \vfill {\em DEL L } \\ Deletes the displayed values of the row where the cursor is positioned. The values are stored in the delete row buffer. Note: in the current version, all the displayed entries of the row currently pointed by the cursor are deleted. \frametext{Not yet implemented} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_undel_line}{Keypad}{} \Rule \vfill {\em UNDEL L } \\ Replaces the row values where the cursor is currently positioned by the values stored in the delete row buffer. Note: in the current version, all the displayed entries of the row currently pointed by the cursor are replaced. \frametext{Not yet implemented} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_arrow}{Keypad}{} % \begin{table}{|c|c|c|c|}{8,16,8,16} \Rule \\ % UP & DOWN & LEFT & RIGHT \\ \^ & | & <-- & --> \\ | & v & & ~ \\ \Rule \end{table} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{_bad_key}{Keypad}{} \Rule \vfill \frametext{No Help Available for this Key} \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{tabular}{Keypad}{} \Rule \vfill {\bf TABULAR} Moves the cursor to the next or previous field (column) within the current page, depending on the current direction (see ADVANCE and BACKUP). \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{help}{Keypad}{} \Rule \vfill \frametext{Portable Table Editor} The current version uses a Keypad/Function mode or a command mode to perform the editing functions. \\ To enter in the command mode hit {\bf CNTL Z} or the {\bf COMMAND} keypad/function key. To exit type {\bf quit} or {\bf exit} in the command mode. \\ Exiting the editing session with a {\bf quit} will not modify the table. \frametext{Press keypad {\bf PF2} or function key {\bf F2} for more information} \vfill \Rule \vfill To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{show}{Keypad}{} \Rule \vfill {\em SHOW } \\ \vfill Show number of columns and rows in the table. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{sort}{Keypad}{} \Rule \vfill {\em SORT } \\ \vfill Sort table according to the ascending/descending order of a column. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{status}{Keypad}{} \Rule \vfill {\em STATUS } \\ \vfill Displays editor internal variables. \vfill \Rule \vfill To return to the keypad diagram, press {\em return} key or {\em PF2}.\\ To exit the help, press the {\em spacebar}.\\ For help on any other keypad or function keys, press the key. \vfill \eos{} \Help{1}{Function}{Keypad}{} % Note: This keypad is made of two parts: left 5x2 L keys, % right 1x2 keys. Implemented as two-columns, and a table in each col % \begin{table}{ll}{20,30} \begin{table}{|c|c|}{8,8} % Left Part (L keys) \Rule PAGE & NEXT \\ (L1) & (L2) \\ {\em COMMAND} & {\em FIND}\\ \Rule ADVANCE & BACKUP \\ (L3) & (L4) \\ {\em BOTTOM} & {\em TOP} \\ \Rule RIGHT P & CREA COL \\ (L5) & (L6) \\ {\em LEFT P} & {\em DEL COL} \\ \Rule WORD & CHANGE \\ (L7) & (L8) \\ {\em SHOW} & {\em SORT} \\ \Rule LINE & ROW \\ (L9) & (L10) \\ {\em SCREEN} & {\em STATUS} \\ \Rule \end{table} % End of Left Part & % Right Column (Function Keys) \begin{table}{|c|c|}{8,8} \Rule (F1) & (F2) \\ {\em GOLD}& HELP \\ ~ & ~ \\ \Rule \end{table} \begin{table}{r}{} ~\\ ~\\ Press the key to get help\\ ~\\ ~\\ Use the {\bf \^Z} key to go to \\ Command Mode\\ ~\\ ~\\ Press the {\em spacebar} to exit\\ \end{table} % End of Right Part \end{table} % End of Table \eos{}