什么什么为什么| 心脾两虚吃什么中成药| 脾肾两虚吃什么中成药最好| 植入是什么意思| 3月18号是什么星座| 少许纤维灶是什么意思| 南京市徽为什么是貔貅| 新西兰移民需要什么条件| 搁浅了是什么意思| 什么颜色的头发显白| edifice是什么牌子手表| 孕晚期为什么会脚肿| 2024年是什么年| 岂是什么意思| 燕窝是什么东西| 上焦火旺什么症状| 月字旁的字与什么有关| 经常生闷气会得什么病| 义父什么意思| bpd是什么意思| 贯众是什么植物| 什么是甲母痣| 荷叶配什么减肥效果好| 膝盖后面的窝叫什么| 异口同声什么意思| 什么是点天灯| 琼脂是什么| 玉化是什么意思| 高考什么时候恢复| 病毒五项检查的是什么| 水瓶座女生和什么星座男生最配| 张学良为什么不回大陆| 冰箱eco是什么意思| 雨水是什么季节| 冲任失调是什么意思| 武警支队长是什么级别| 右眼跳是什么兆头| 脂肪肝喝什么茶最好最有效| 女性尿道出血是什么原因引起的| 2015年是什么生肖| 8000年前是什么朝代| 什么是修辞手法| 孩子手脚冰凉是什么原因| 鲜花又什么又什么| 肠胃炎可以吃什么| 一只眼睛肿了是什么原因| 2040年是什么年| 无可厚非什么意思| 央企与国企有什么区别| 狗喜欢吃什么食物| 小孩鼻子出血什么原因| 5月22号是什么星座| 案山是什么意思| 不出汗的人是什么原因| 飞机不能带什么| 什么空调省电| 内科主要看什么病| 小儿外科主要看什么病| 那天午后我站在你家门口什么歌| 六十天打一字是什么字| 心脏跳的快什么原因| x是什么牌子的衣服| 左眉上方有痣代表什么| 7月15是什么节| 七月十三什么星座| 浑身发抖是什么原因| 吃什么药去体内湿气| 灬是什么意思| 男人时间短什么原因| 26是什么意思| 私生饭什么意思| 产前诊断是检查什么| 仓鼠咬笼子是什么原因| 闪失是什么意思| 毛囊炎用什么药膏最好| 房间隔缺损是什么意思| 牙龈肿痛看什么科| 伯恩光学是做什么的| 毛主席什么时候去世的| 草木皆兵指什么生肖| 新生儿眼屎多是什么原因| 烧心吃什么| 芒果是什么季节的| 金桔什么时候开花结果| 新疆是什么族| 琥珀酱是什么味| 梦见自己穿孝衣有什么征兆| 梦见发洪水是什么征兆| 射手座是什么象星座| 97年属牛的是什么命| 结合是什么意思| 茯茶是什么茶| 怎么知道自己适合什么发型| 八卦是什么| 什么东西越生气越大| 娭毑是什么意思| 内膜欠均匀是什么意思| 招财猫鱼吃什么| 气滞血瘀吃什么中成药| 脑囊肿是什么病严重吗| 原发性是什么意思| 扁桃是什么水果| cu是什么元素| cn是什么意思二次元| 子宫憩室有什么症状| 葡萄籽有什么功效和作用| 三和大神什么意思| 生理期吃什么水果| 植物园有什么植物| 怀孕了梦见蛇是什么意思| 对酒当歌是什么生肖| 一什么草坪| 小孩体检挂什么科| 智商什么意思| 女人戴什么招财又旺夫| 25岁今年属什么生肖| 甲醛中毒什么症状| 985211是什么意思| 什么茶能去体内湿气| 大生化能查出什么病来| 小美女是什么意思| 骑驴找马什么意思| 婊子是什么生肖| 什么蛇没有毒| 食铁兽是什么动物| 吃完海鲜不能吃什么水果| 金贵肾气丸治什么病| 鼻炎吃什么药效果最好| 手肿脚肿是什么原因引起的| 产后42天挂什么科| 血清胃功能检测是什么| 流年不利什么意思| 抑郁症去医院挂什么科| 茶宠为什么会变色| 笑死是什么意思| 甲基硫菌灵治什么病| 指征是什么意思| 相依相偎是什么意思| 什么光| 拉稀是什么原因| 为什么肚子会隐隐作痛| 一个夸一个瓜念什么| 头不舒服是什么原因| 腿麻是什么病的前兆| 动人是什么意思| 吃什么帮助消化通便| 两腿抽筋是什么原因| 囊实性结节是什么意思| 女生体毛多是什么原因| 凿壁偷光形容什么| 什么行什么什么| 白玉菩提是什么材质| 糖类抗原是检查什么的| 火车上不能带什么| 精忠报国是什么生肖| 人参归脾丸和归脾丸有什么区别| 词讼是什么意思| 98年属相是什么| 诸事皆宜是什么意思| 后羿是什么生肖| 戴银镯子变黑是什么原因| 妙手回春是什么意思| 榴莲不能和什么同吃| 2023年属什么| 签发是什么意思| 血清检查能测出什么| 原生家庭是什么| 元朝是什么民族| 荔枝代表什么寓意| 胆碱能性荨麻疹吃什么药| 三眼花翎是什么意思| 叶酸买什么牌子的好| 演唱会安可是什么意思| 西湖醋鱼用什么鱼| 人流后吃什么水果好| 端午节吃什么食物| 中性粒细胞比率偏低是什么意思| exm是什么意思| 老面是什么面| 蚊子为什么会咬人| 脚后跟干裂用什么药膏| 教育的本质是什么| 鼠标cpi是什么意思| 什么时候敷面膜是最佳时间| 脾胃虚弱吃什么中成药| 鹿柴什么意思| 大便不调是什么意思| 人为什么会得白血病| pending是什么意思啊| 头晕出汗是什么原因| 石加乏念什么| 食是什么生肖| p是什么医学| 间接胆红素偏高什么意思| 南京区委书记什么级别| 腿肿是什么病的前兆| 什么是违反禁令标志指示| 什么东西能戒酒| 10万个为什么的作者| 锶是什么意思| 宠物蛇吃什么食物| 大腿根疼是什么原因| 健脾丸和归脾丸有什么区别| 产后42天复查挂什么科| 疏通血管吃什么药最好| 衣服最小码是什么字母| 1923年属什么生肖| 梅花是什么颜色的| 左金丸治什么病最好| 为什么会有癌症| 躯体化障碍是什么病| 什么食物含叶酸多| 城堡是什么意思| 九三年属鸡是什么命| 什么是血友病| 印绶是什么意思| 虾与什么食物相克| 04年是什么年| 李姓男孩起什么名字好| 疴是什么意思| 肚子疼拉稀是什么原因| 家财万贯是什么动物| 肉是什么结构的字| 璟字五行属什么| 鞭尸什么意思| 双肺门不大是什么意思| 梦见桥断了有什么预兆| 头不由自主的摇晃是什么病| 九霄云外是什么生肖| 生理盐水有什么作用| 什么是介入手术| 盗墓笔记讲了什么| 嘴巴周围长痘痘是什么原因引起的| 中国最高学位是什么| 高粱是什么| 突如其来什么意思| 阳痿吃什么药效果好| 鄙视是什么意思| 包皮炎用什么药最有效| 肋间神经痛什么症状| 彼岸花又叫什么花| 七夕节的含义是什么| FAN英语什么意思| 林子祥属什么生肖| 嘴唇发红是什么原因| 肝脏的作用是什么| c位是什么意思| 史迪仔是什么动物| 代表友谊的花是什么花| 婴儿流口水是什么原因引起的| 生活老师是做什么的| 清真是什么意思啊| 经常尿路感染是什么原因| 双侧输尿管不扩张是什么意思| 为什么痣上面会长毛| 铁观音属于什么茶类| 螳螂捕蝉什么意思| 特首是什么意思| 鼻窦炎吃什么药好得快| 肠梗阻是什么原因引起的| 人中浅的女人代表什么| 不务正业是什么意思| 糖尿病吃什么水果好| 什么食物维生素A含量高| 百度Jump to content

“台旅法”生效后首位美官员抵台 外交部:已提出严正交涉

From Wikipedia, the free encyclopedia
Some file managers implement a TUI (here: Midnight Commander)
Vim is a very widely used TUI text editor
百度 病急押注新能源事实上,无论是2019年开始实施的新能源双积分政策,还是引发诸多讨论的燃油车退出时间表,都注定新能源不再是车企的选择题而是必答题。

In computing, text-based user interfaces (TUI) (alternately terminal user interfaces, to reflect a dependence upon the properties of computer terminals and not just text), is a retronym describing a type of user interface (UI) common as an early form of human–computer interaction, before the advent of bitmapped displays and modern conventional graphical user interfaces (GUIs). Like modern GUIs, they can use the entire screen area and may accept mouse and other inputs. They may also use color and often structure the display using box-drawing characters such as ┌ and ╣. The modern context of use is usually a terminal emulator.

Types of text terminals

[edit]

From text application's point of view, a text screen (and communications with it) can belong to one of three types (here ordered in order of decreasing accessibility):

  1. A genuine text mode display, controlled by a video adapter or the central processor itself. This is a normal condition for a locally running application on various types of personal computers and mobile devices. If not deterred by the operating system, a smart program may exploit the full power of a hardware text mode.
  2. A text mode emulator. Examples are xterm for X Window System and win32 console (in a window mode) for Microsoft Windows. This usually supports programs which expect a real text mode display, but may run considerably slower. Certain functions of an advanced text mode, such as an own font uploading, almost certainly become unavailable.
  3. A remote text terminal. The communication capabilities usually become reduced to a serial line or its emulation, possibly with few ioctl()s as an out-of-band channel in such cases as Telnet and Secure Shell. This is the worst case, because software restrictions hinder the use of capabilities of a remote display device.

Under Linux and other Unix-like systems, a program easily accommodates to any of the three cases because the same interface (namely, standard streams) controls the display and keyboard. See below for comparison to Windows.

Many TUI programming libraries are available to help developers build TUI applications.

On ANSI-compatible terminals

[edit]

American National Standards Institute (ANSI) standard ANSI X3.64 defines a standard set of escape sequences that can be used to drive terminals to create TUIs (see ANSI escape code). Escape sequences may be supported for all three cases mentioned in the above section, allowing arbitrary cursor movements and color changes. However, not all terminals follow this standard, and many non-compatible but functionally equivalent sequences exist.

Under DOS and Microsoft Windows

[edit]
The FreeDOS Edit user interface

On IBM Personal Computers and compatibles, the Basic Input Output System (BIOS) and DOS system calls provide a way to write text on the screen, and the ANSI.SYS driver could process standard ANSI escape sequences. However, programmers soon learned that writing data directly to the screen buffer was far faster and simpler to program, and less error-prone; see VGA-compatible text mode for details. This change in programming methods resulted in many DOS TUI programs. The Windows console environment is notorious for its emulation of certain EGA/VGA text mode features, particularly random access to the text buffer, even if the application runs in a window. On the other hand, programs running under Windows (both native and DOS applications) have much less control of the display and keyboard than Linux and DOS programs can have, because of aforementioned Windows console layer.

Mouse cursor in Impulse Tracker. A more precise cursor (per-pixel resolution) was achieved by regenerating the glyphs of characters used where the cursor was visible, at each mouse movement in real-time.[citation needed]

Most often those programs used a blue background for the main screen, with white or yellow characters, although commonly they had also user color customization. They often used box-drawing characters in IBM's code page 437. Later, the interface became deeply influenced by graphical user interfaces (GUI), adding pull-down menus, overlapping windows, dialog boxes and GUI widgets operated by mnemonics or keyboard shortcuts. Soon mouse input was added – either at text resolution as a simple colored box or at graphical resolution thanks to the ability of the Enhanced Graphics Adapter (EGA) and Video Graphics Array (VGA) display adapters to redefine the text character shapes by software – providing additional functions.

Some notable programs of this kind were Microsoft Word, DOS Shell, WordPerfect, Norton Commander, Turbo Vision based Borland Turbo Pascal and Turbo C (the latter included the conio library), Lotus 1-2-3 and many others. Some of these interfaces survived even during the Microsoft Windows 3.1x period in the early 1990s. For example, the Microsoft C 6.0 compiler, used to write true GUI programs under 16-bit Windows, still has its own TUI.

Since its start, Microsoft Windows includes a console to display DOS software. Later versions added the Windows console as a native interface for command-line interface and TUI programs. The console usually opens in window mode, but it can be switched to full, true text mode screen and vice versa by pressing the Alt and Enter keys together. Full-screen mode is not available in Windows Vista and later, but may be used with some workarounds.[1]

Windows Terminal is a multi-tabbed terminal emulator that Microsoft has developed for Windows 10 and later[2] as a replacement for Windows Console.

The Windows Subsystem for Linux which was added to Windows by Microsoft in 2019, supports running Linux text-based apps on Windows, within Windows console, Windows Terminal, and other Windows-based terminals.

Under Unix-like systems

[edit]
Snapshot of 'XFdrake', a TUI used in Mandriva Linux to configure the graphical system
btop - task manager utility for Linux and other unix-like OS

In Unix-like operating systems, TUIs are often constructed using the terminal control library curses, or ncurses (a mostly compatible library), or the alternative S-Lang library. The advent of the curses library with Berkeley Unix created a portable and stable API for which to write TUIs. The ability to talk to various text terminal types using the same interfaces led to more widespread use of "visual" Unix programs, which occupied the entire terminal screen instead of using a simple line interface. This can be seen in text editors such as vi, mail clients such as pine or mutt, system management tools such as SMIT, SAM, FreeBSD's Sysinstall and web browsers such as lynx. Some applications, such as w3m, and older versions of pine and vi use the less-able termcap library, performing many of the functions associated with curses within the application. Custom TUI applications based on widgets can be easily developed using the dialog program (based on ncurses), or the Whiptail program (based on S-Lang).

In addition, the rise in popularity of Linux brought many former DOS users to a Unix-like platform, which has fostered a DOS influence in many TUIs. The program minicom, for example, is modeled after the popular DOS program Telix. Some other TUI programs, such as the Twin desktop, were ported over.

Most Unix-like operating systems (Linux, FreeBSD, etc.) support virtual consoles, typically accessed through a Ctrl-Alt-F key combination. For example, under Linux up to 64 consoles may be accessed (12 via function keys), each displaying in full-screen text mode.

The free software program GNU Screen provides for managing multiple sessions inside a single TUI, and so can be thought of as being like a window manager for text-mode and command-line interfaces. Tmux can also do this.

The proprietary macOS text editor BBEdit includes a shell worksheet function that works as a full-screen shell window. The free Emacs text editor can run a shell inside of one of its buffers to provide similar functionality. There are several shell implementations in Emacs, but only ansi-term is suitable for running TUI programs. The other common shell modes, shell and eshell only emulate command lines and TUI programs will complain "Terminal is not fully functional" or display a garbled interface. The free Vim and Neovim text editors have terminal windows (simulating xterm). The feature is intended for running jobs, parallel builds, or tests, but can also be used (with window splits and tab pages) as a lightweight terminal multiplexer.

OpenVMS

[edit]

VAX/VMS (later known as OpenVMS) had a similar facility to curses known as the Screen Management facility or SMG. This could be invoked from the command line or called from programs using the SMG$ library.[3]

Oberon

[edit]
Screenshot of the desktop of an Oberon System showing an image and several text viewers

Another kind of TUI is the primary interface of the Oberon operating system, first released in 1988 and still maintained. Unlike most other text-based user interfaces, Oberon does not use a text-mode console or terminal, but requires a large bit-mapped display, on which text is the primary target for mouse clicks. Analogous to a link in hypertext, a command has the format Module.Procedure parameters ~ and is activated with a mouse middle-click. Text displayed anywhere on the screen can be edited, and if formatted with the required command syntax, can be middle-clicked and executed. Any text file containing suitably-formatted commands can be used as a so-called tool text, thus serving as a user-configurable menu. Even the output of a previous command can be edited and used as a new command. This approach is radically different from both conventional dialogue-oriented console menus or command-line interfaces but bears some similarities to the worksheet interface of the Macintosh Programmer's Workshop.

Since it does not use graphical widgets, only plain text, but offers comparable functionality to a GUI with a tiling window manager, it is referred to as a Text User Interface or TUI. For a short introduction, see the 2nd paragraph on page four of the first published Report on the Oberon System.[4]

Oberon's UI influenced the design of the Acme text editor and email client for the Plan 9 from Bell Labs operating system.

In embedded systems

[edit]
Embedded system displaying menu on an LCD screen

Modern embedded systems are capable of displaying TUI on a monitor like personal computers. This functionality is usually implemented using specialized integrated circuits, modules, or using FPGA.

Video circuits or modules are usually controlled using VT100-compatible command set over UART,[citation needed] FPGA designs usually allow direct video memory access.[citation needed]

Other uses

[edit]
  • The full screen editor of the Commodore 64 8-bit computers was advanced in its market segment for its time. Users could move the cursor over the entire screen area, entering and editing BASIC program lines, as well as direct mode commands. All Commodore 8-bit computers used the PETSCII character set, which included character glyphs suitable for making a TUI.
  • Apple's Macintosh Programmer's Workshop programming environment included Commando, a TUI shell. It was the inspiration for BBEdit's shell worksheet.
  • Later Apple II models included MouseText, a set of graphical glyphs used for making a TUI.
  • The Corvus Concept computer of 1982 used a function key-based text interface on a full-page pivoting display.

See also

[edit]

Examples of programming libraries

[edit]

References

[edit]
  1. ^ cmd prompt full screen in Windows 7. Social.technet.microsoft.com. Retrieved on 2025-08-08.
  2. ^ Warren, Tom (May 6, 2019). "Microsoft unveils Windows Terminal, a new command line app for Windows". The Verge.
  3. ^ "OpenVMS RTL Screen Management (SMG$) Manual". hpe.com. 2001. Retrieved 2025-08-08.
  4. ^ Wirth, Niklaus; Gutknecht, Jürg (1988). The Oberon System (PDF) (Technical report). ETH Eidgen?ssische Technische Hochschule Zürich, Institut für Informatik. Vol. 88. doi:10.3929/ethz-a-000487176.
奶奶的弟弟叫什么 排便困难用什么药 梦见自己又结婚了是什么意思 尿酸高喝什么水最好 隐是什么意思
低密度脂蛋白高吃什么药 鸭子喜欢吃什么食物 什么是贡菜 1997年出生属什么 关节咔咔响是什么原因
淀粉酶是什么 尿频尿多吃什么药好 藕粉不能和什么一起吃 刷屏是什么意思 开金花是什么生肖
肉刺用什么药膏能治好 吃什么食物排湿气 尿素偏高是什么意思 易拉罐是什么垃圾 一人吃饱全家不饿是什么生肖
雅号是什么意思hcv9jop0ns3r.cn 朝鲜的货币叫什么hcv7jop7ns1r.cn 间作套种是什么意思chuanglingweilai.com 白介素2是治疗什么病的hcv8jop1ns2r.cn omega是什么意思hcv9jop1ns5r.cn
热疹用什么药hcv8jop1ns1r.cn 总口渴是什么原因hcv8jop5ns9r.cn 骨质疏松症有什么症状bfb118.com 义五行属什么hcv9jop2ns0r.cn 精神焦虑症有什么表现有哪些hcv8jop5ns0r.cn
贻笑大方是什么意思hcv8jop4ns6r.cn 苏子是什么aiwuzhiyu.com 事急从权是什么意思qingzhougame.com 痛风吃什么药好hcv9jop5ns1r.cn 一天老是放屁是什么原因hcv9jop2ns6r.cn
b是什么牌子的衣服hcv9jop1ns3r.cn 什么药治胃炎效果好hcv9jop4ns4r.cn 梦见洗鞋子是什么意思hcv8jop5ns4r.cn wbc是什么hcv9jop6ns1r.cn 池塘边的榕树上是什么歌tiangongnft.com
百度 技术支持:蜘蛛池 www.kelongchi.com