Удалить персонажа

The удалением управления (also called DEL or rubout) is the last character in the ASCII repertoire, with the code 127.[1] It is supposed to do nothing and was created so that incorrect characters on бумажной ленте could be erased. It is denoted as ^? in системе обозначений с помощью символа каретки and is U+007F in Unicode.

Terminal emulators may produce DEL when ← Backspace key or Control+← Backspace or Control+? are typed.

История

  ·    НУЛЬ
•·••КР
•·•ЛФ
••••·•••ДЕЛ
•·СП
Символ «Delete», а также некоторые другие управляющие символы ASCII и пробел, как они отображаются на перфокарте.

This code was originally used to mark deleted characters on перфорированной ленте, since any character could be changed to all 1s by punching holes everywhere. If a character was punched erroneously, punching out all seven bits caused this position to be ignored or deleted.[2][3] In шестнадцатеричной системе, this is 7F to rub out 7 bits (FF для стирания 8 бит was used for 8-bit codes). This character could also be used as заполнения to slow down printing after newlines, though the all-zero NUL was more often used.

The модели 33 provided a key labelled RUB OUT to punch this character (after the user backed up the tape using another button), and did not provide a key that produced the символ возврата (BS). Therefore, a number of less expensive computer systems that used Teletypes used this key (and thus the delete code) to ignore the previous mis-typed character. Video terminals designed to replace the teletype then had to place a key that produced this code where backspace would be expected, in particular in products from Digital Equipment Corporation. On VT100 compatible terminals, this is the character generated by the key labeled Delete.[4][5] On later terminals, such as the VT510, the key is labeled ⌫ (called backarrow in the manual[6]) and by default sent DEL, but could be set up to send BS.

Other terminals designed for systems that did not have a history of using Teletypes would usually make a key at this position send BS, leading to much confusion. Unix, in particular, had a problem in that it could only be programmed to erase the previous character for одного of these (not both), thus requiring the user to reconfigure the terminal driver for each brand of terminal. Depending on the type of terminal the designer used, software would sometimes make the shortcuts Ctrl+H or Ctrl+? do something, even though these sent the same code as BS and DEL, assuming the backspace key was sending the other code.

A key marked Backspace ← that sends BS is by far the most common on modern terminals and emulators. To ensure text is not deleted backwards, the key marked "Delete" on many terminals does not send DEL and instead sends an управляющую последовательность, such as ^[[3~.[7]

Текущее использование

В Unix-подобных operating systems can still use it as the удаления character, i.e., to delete the previous character in the режиме строки. The terminal driver still cannot be programmed to take both this and клавиши Backspace: one must be chosen. However, most modern programs bypass this and use libraries such as Readline, которые принимают оба кода. Большинство which accepts both codes. Most Unix эмуляторов терминала can be configured to send either delete or backspace when the backspace key is pressed.[citation needed]

DOS/Windows never used this character in any way. The BIOS keyboard driver produced backspace when the backspace key was typed and NUL with кодом сканирования 0x53 when the delete key was typed.[8] In Windows, the delete key maps to VK_DELETE (0x2E).[9] Шрифты EGA/VGA, as fonts used by консолью Win32, usually have the символ «домика» ⌂ at 127 (0x7F) code point (see кодовую страницу 437 for details). However, its legacy can be seen in parts of the Windows operating system: as an example, Control+← Backspace in Блокноте and Проводнике used to insert the delete character[10][11] until it was changed in , пока в версии 1809 to make it delete the previous word, as it does in most modern applications.[12][13]

См. также

Ссылки

  1. ↑ Винт Серф (16 октября 1969 г.). Формат ASCII для сетевого обмена данными. IETF. doi: 10.17487/RFC0020. RFC 20.
  2. ↑ Robert C. Martin (2011). «Чистый программист: Кодекс поведения для профессиональных программистов». Pearson Education. ISBN 9780132542883.
  3. ↑ LaFarr (18 August 2006). ""Paper Tape" First Machinable I/O". Archived from оригинала on 3 August 2017Дата обращения: 12 апреля 2015.
  4. ↑ "Семейство видеотерминалов VT100". vt100.net.
  5. ↑ «Руководство пользователя VT100 — Глава 3 — Таблица 3-4 Коды функциональных клавиш». vt100.net. Archived from оригинала on 2016-03-14. Retrieved 2015-04-12.
  6. ↑ "Информация о программаторе видеотерминала VT510 – Глава 5 – Функции управления ANSI". vt100.net.
  7. ↑ "Информация о программаторе видеотерминала VT510 – Глава 8 – Обработка клавиатуры". vt100.net. Archived from оригинала on 2016-03-04. Retrieved 2015-04-12.
  8. ↑ "Комбинации кодов клавиатуры/символьных кодов - PC DOS Retro". Archived from оригинала on 2020-05-01. Retrieved 2020-04-19.
  9. ↑ "Виртуальные ключи (Winuser.h) - приложения Win32". 22 June 2022.
  10. ↑ "Сочетания клавиш - поведение сочетания CTRL-Backspace в Блокноте". Суперпользователь.
  11. ↑ «При переименовании файла в Windows сочетание клавиш CTRL + Backspace не удаляет целые слова». Super User.
  12. ↑ Kaufman, Lori (2018-11-23). «Новый и улучшенный блокнот Windows 10: полезные советы и функции». MakeUseOf.
  13. ↑ "Ctrl+Backspace". Computer Hope. 2025-06-01.

Источники

  • Участники английской Википедии. «Delete character». Перевод на русский. CC BY-SA 4.0 (текст и перевод).
Соглашение О проекте Обратная связь
2026, Альфапедия. Список материалов:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25