Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ref:uifc [2020/11/28 13:57] – [UIFC List Window Flags] remove c/js chart mlong | ref:uifc [2024/03/05 13:37] (current) – [Background] Update link to NetWare SYSCON page digital man | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Background ===== | ===== Background ===== | ||
- | UIFC (User InterFaCe) is the text mode full-screen user interface library used by [[util: | + | UIFC (User InterFaCe) is the text mode full-screen user interface library used by [[util: |
===== Interfaces ===== | ===== Interfaces ===== | ||
+ | |||
+ | ==== Output ==== | ||
+ | |||
+ | The UIFC library uses the Synchronet Console I/O Library (CIOLIB). | ||
+ | |||
+ | === Windows Console Mode === | ||
+ | |||
+ | == Windows Terminal == | ||
+ | |||
+ | UIFC apps are often not pretty when run from within Windows Terminal ('' | ||
==== Input ==== | ==== Input ==== | ||
Line 106: | Line 116: | ||
| WIN_CUT | Allow Ctrl-X/Cut a Menu Item | | | WIN_CUT | Allow Ctrl-X/Cut a Menu Item | | ||
| WIN_EDIT | Allow F2 to edit a menu item | | | WIN_EDIT | Allow F2 to edit a menu item | | ||
- | | WIN_PASTEXTR | Allow paste into extra (blank) item | | + | | WIN_PASTEXTR | Allow paste into extra (blank) item | |
- | | WIN_GET | Alias for WIN_COPY | | + | |
- | | WIN_PUT | Alias for WIN_PASTE | | + | |
||| | ||| | ||
| WIN_HLP | Parse Help Codes | | | WIN_HLP | Parse Help Codes | | ||
Line 117: | Line 125: | ||
==== UIFC Input Keyboard Modes ==== | ==== UIFC Input Keyboard Modes ==== | ||
- | ^ Flag ^ Description | + | ^ Flag ^ Description ^ |
- | | K_NONE | No special behavior | + | | K_NONE | No special behavior | |
- | | K_UPPER | Converts all letters to upper case | Y | Y | | + | | K_UPPER | Converts all letters to upper case | |
- | | K_UPRLWR | Upper/lower case automatically | + | | K_UPRLWR | Upper/lower case automatically | |
- | | K_NUMBER | Allow numbers only | Y | Y | | + | | K_NUMBER | Allow numbers only | |
- | | K_WRAP | Allows word wrap | Y | Y | | + | | K_MSG | Allows Ctrl-A |
- | | K_MSG | Allows | + | | K_EDIT | Edit string passed | |
- | | K_SPIN | Spinning cursor | Y | Y | | + | | K_ALPHA | Only allow alphabetic characters | |
- | | K_LINE | Input line (inverse color) | Y | Y | | + | | K_SCANNING | UPC Scanner is active, return on ' |
- | | K_EDIT | Edit string passed | + | | K_LEFTEXIT | Allow exit from getstr() with backspace | |
- | | K_CHAT | In chat multi-chat | Y | Y | | + | | K_TABEXIT | Exit on TAB or BACKTAB | |
- | | K_NOCRLF | Don't print CRLF after string input | Y | Y | | + | | K_DECIMAL | Allow floating point numbers only | |
- | | K_ALPHA | Only allow alphabetic characters | + | | K_DEUCEEXIT | Return on up/down/F2 | |
- | | K_SCANNING | UPC Scanner is active, return on ' | + | | K_MOUSEEXIT | Returns when mouse is clicked outside of input area (not window) | |
- | | K_LOWPRIO | Low-priority input | Y | Y | | + | | K_PASSWORD | Do not display text while editing | |
- | | K_NOEXASC | No extended ASCII allowed | Y | Y | | + | | K_FIND | Don't set the " |
- | | K_E71DETECT | Detect E-7-1 terminal type | Y | Y | | + | |
- | | K_AUTODEL | Auto-delete text (used with K_EDIT) | Y | Y | | + | |
- | | K_COLD | Possible cold key mode | Y | Y | | + | |
- | | K_NOECHO | Don't echo input | Y | Y | | + | |
- | | K_TAB | Treat TAB as CR | Y | Y | | + | |
- | | K_LEFTEXIT | Allow exit from getstr() with backspace | + | |
- | | K_USEOFFSET | Use console.getstr_offset with getstr() | Y | Y | | + | |
- | | K_NOSPIN | Do not honor user's spinning cursor | Y | Y | | + | |
- | | K_ANSI_CPR | ANSI Cursor Position Report expected | Y | Y | | + | |
- | | K_TRIM | Trim white-space from both ends of str | Y | Y | | + | |
- | | K_CTRLKEYS | No control-key handling in inkey() | Y | Y | | + | |
- | | K_TABEXIT | Exit on TAB or BACKTAB | + | |
- | | K_DECIMAL | Allow floating point numbers only | Y | Y | | + | |
- | | K_DEUCEEXIT | Return on up/ | + | |
- | | K_MOUSEEXIT | Returns when mouse is clicked outside of input area (not window) | + | |
- | | K_PASSWORD | Do not display text while editing | + | |
- | | K_FIND | Don't set the " | + | |
==== UIFC List Return Input Masks ==== | ==== UIFC List Return Input Masks ==== | ||
Line 163: | Line 154: | ||
| MSK_CUT | Item cut (Ctrl-X) | | | MSK_CUT | Item cut (Ctrl-X) | | ||
| MSK_PASTE | Item pasted (Ctrl-V) | | | MSK_PASTE | Item pasted (Ctrl-V) | | ||
- | | MSK_EDIT | | | + | | MSK_EDIT | Item was selected for edit (F2) | |
- | Example | + | Example |
< | < | ||
Line 173: | Line 164: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | {{tag> |