Skip to content

Commit 997e85b

Browse files
authored
Merge pull request #4702 from MidnightCommander/1612_remove_display_bits
Remove "Display bits" dialog
2 parents 981733d + fb2392d commit 997e85b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+3823
-3605
lines changed

doc/FAQ

+4-9
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,7 @@ Frequently Asked Questions
396396
For termcap/terminfo database, change the acsc capability in the
397397
database.
398398

399-
4.4 I have problems with entering/viewing national characters!
400-
401-
From the Options - Display Bits dialog select Full 8 bits or ISO
402-
8859-1. In addition, select 8 bit input from the same dialog.
403-
404-
4.5 How can I get colors?
399+
4.4 How can I get colors?
405400

406401
Invoke mc like this (without quotes): "mc -c".
407402

@@ -450,7 +445,7 @@ Frequently Asked Questions
450445
If you use Linux console the correct value for TERM is linux or
451446
console.
452447

453-
4.6 My color_xterm goes completely (or partially) black!
448+
4.5 My color_xterm goes completely (or partially) black!
454449

455450
Some color_xterm terminals define all colors as black instead of the
456451
standard ANSI colors. This makes them go completely black when you
@@ -482,7 +477,7 @@ Frequently Asked Questions
482477
ever the name of your X configuration file is). Or you can replace
483478
your non-ANSI color_xterm with an ANSI color_xterm.
484479

485-
4.7 Where can I get xterm or rxvt?
480+
4.6 Where can I get xterm or rxvt?
486481

487482
xterm is included with the X Window System, so you probably already
488483
have it if you have X. This version is not actively maintained, but
@@ -492,7 +487,7 @@ Frequently Asked Questions
492487
rxvt has its own site https://rxvt.sourceforge.net - get the latest version
493488
there.
494489

495-
4.8 I got colors working with MC but the other programs don't work at
490+
4.7 I got colors working with MC but the other programs don't work at
496491
all anymore!
497492

498493
Midnight Commander uses terminfo database (if available) but many

doc/man/es/mc.1.in

-16
Original file line numberDiff line numberDiff line change
@@ -1708,12 +1708,6 @@ podemos seleccionar un «skin» o apariencia para el programa.
17081708
.PP
17091709
En
17101710
.\"LINK2"
1711-
Juego de Caracteres
1712-
.\"Display bits"
1713-
podemos seleccionar qué caracteres es capaz de mostrar nuestro terminal.
1714-
.PP
1715-
En
1716-
.\"LINK2"
17171711
Aprender Teclas
17181712
.\"Learn keys"
17191713
podemos verificar teclas que no funcionan en algunos terminales y
@@ -2074,16 +2068,6 @@ Véase la sección sobre
20742068
Skins
20752069
.\"Skins"
20762070
para conocer los detalles de los archivos de definición de estos «skins».
2077-
.\"NODE " Display bits"
2078-
.SH " Juego de caracteres"
2079-
Esta opción permite configurar el conjunto de caracteres visibles en la
2080-
pantalla. Este puede ser 7\-bits si nuestro terminal/curses soporta
2081-
solo siete bits de salida, alguna de las tablas del estándar ISO\-8859 y
2082-
diversas codificaciones comunes de PC con ocho bits por carácter, o UTF\-8
2083-
para Unicode.
2084-
.PP
2085-
Para soportar teclados con caracteres locales debemos marcar la opción de
2086-
.IR "Aceptar entrada de 8 bits" .
20872071
.\"NODE " Learn keys"
20882072
.SH " Aprender teclas"
20892073
Este diálogo nos permite comprobar si nuestras teclas F1\-F20, Inicio, Fin, etc. funcionan adecuadamente

doc/man/hu/mc.1.in

-17
Original file line numberDiff line numberDiff line change
@@ -1497,13 +1497,6 @@ mely műveletekhez kell megerősítést kérni.
14971497
.PP
14981498
A
14991499
.\"LINK2"
1500-
Képernyőbitek
1501-
.\"Display bits"
1502-
parancs dialógus ablakot nyit meg, amellyel beállíthatod azt, hogy
1503-
milyen karakterek jelenhessenek meg a terminálodon.
1504-
.PP
1505-
A
1506-
.\"LINK2"
15071500
Billentyűzet tanítás
15081501
.\"Learn keys"
15091502
dialódus ablakot jelenít meg, amelyben megvizsgálhatod azokat a
@@ -1730,16 +1723,6 @@ jelenleg is kiválasztott bejegyzések információival.
17301723
Ebben a menüben tudod beállítani enter lenyomására a törlés,
17311724
felülírás, futtatás, és programból történő kilépés
17321725
Megerősítésének opcióit.
1733-
.\"NODE " Display bits"
1734-
.SH " Képernyőbitek"
1735-
Ez az ablak a megjelenített karakterek tartományának beállítására
1736-
szolgál. Ez a beállítás lehet 7\-bites, ha terminálod, vagy
1737-
megjelenítésed csak a hét bites karaktereket támogatja; az
1738-
ISO\-8859\-1\-ben az ISO\-8859\-1\-es karaktetábla valamennyi karaktere
1739-
megjeleníthető; végül teljes 8 biten azokon a terminálokon, ahol teljes
1740-
8 bitet meg tudsz jeleníteni. A két utolsó megjelenítési forma képes az
1741-
ő és ű betűk kivételével az összes magyar betűt kijelezni a Belső
1742-
filenézőben.
17431726
.\"NODE " Learn keys"
17441727
.SH " Billentyűzet tanítás"
17451728
Ebben a dialógus ablakban tudod letesztelni azt, hogy terminálodon az

doc/man/it/mc.1.in

+1-15
Original file line numberDiff line numberDiff line change
@@ -1504,13 +1504,6 @@ quali azioni si vuole una richiesta di conferma.
15041504
.PP
15051505
Il comando
15061506
.\"LINK2"
1507-
mostra bit
1508-
.\"Display bits"
1509-
mostra una finestra di dialogo dalla quale è possibile selezionare quali
1510-
caratteri il vostro terminale è capace di mostrare.
1511-
.PP
1512-
Il comando
1513-
.\"LINK2"
15141507
impara tasti
15151508
.\"Learn keys"
15161509
mostra una finestra di dialogo dalla quale è possibile controllare i tasti
@@ -1733,14 +1726,7 @@ selezionata viene mostrata sul fondo dei pannelli.
17331726
.SH " Conferme"
17341727
In questo menu è possibile configurare le opzioni di conferma per la
17351728
cancellazione e sovrascrittura dei file, esecuzione dei file premendo invio e
1736-
per l'uscita dal programma.
1737-
.\"NODE " Display bits"
1738-
.SH " Mostra bit"
1739-
Viene usata per configurare la quantità dei caratteri visibili sullo
1740-
schermo. Quest'impostazione può essere 7 bit, se il terminale/libreria_curses
1741-
supporta solo sette bit in uscita, ISO\-8859\-1 se mostra tutti i caratteri
1742-
nella mappa ISO\-8859\-1 e uscita completa a 8 bit per quei terminali che possono
1743-
visualizzare tutti i caratteri a 8 bit.
1729+
per l'uscita dal programma.
17441730
.\"NODE " Learn keys"
17451731
.SH " Impara tasti"
17461732
Questa finestra di dialogo permette di controllare e ridefinire i tasti

doc/man/mc.1.in

-19
Original file line numberDiff line numberDiff line change
@@ -1687,13 +1687,6 @@ command pops up a dialog from which you specify the skin.
16871687
.PP
16881688
The
16891689
.\"LINK2"
1690-
Display bits
1691-
.\"Display bits"
1692-
command pops up a dialog from which you may select which characters is your
1693-
terminal able to display.
1694-
.PP
1695-
The
1696-
.\"LINK2"
16971690
Learn keys
16981691
.\"Learn keys"
16991692
command pops up a dialog from which you test some keys which are not working
@@ -2069,13 +2062,6 @@ section for technical details about the skin definition files.
20692062
.PP
20702063
.I Shadows.
20712064
If this option is enabled, all dialogs and drop down menus will have a shadow.
2072-
.\"NODE " Display bits"
2073-
.SH " Display bits"
2074-
This is used to configure the range of visible characters on the
2075-
screen. This setting may be 7\-bits if your terminal/curses supports
2076-
only seven output bits, ISO\-8859\-1 displays all the characters in the
2077-
ISO\-8859\-1 map and full 8 bits is for those terminals that can display
2078-
full 8 bit characters.
20792065
.\"NODE " Learn keys"
20802066
.SH " Learn keys"
20812067
This dialog allows you to test and redefine functional keys, cursor
@@ -3112,11 +3098,6 @@ file
31123098
which is copied to
31133099
.B ~/.local/share/mc/mcedit/edit.indent.rc
31143100
in your home directory the first time you use it.
3115-
.PP
3116-
The editor also displays non\-us characters (160+). When editing
3117-
binary files, you should set
3118-
.B display bits
3119-
to 7 bits in the options menu to keep the spacing clean.
31203101

31213102
.\"NODE "Internal File Editor / options"
31223103
.SH "Options of editor in ini\-file"

doc/man/mcedit.1.in

-6
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,6 @@ will be untouched. Default value is
607607
.I editor_state_full_filename
608608
Show full path name in the status line. If disabled (default), only base name of the
609609
file is shown.
610-
.SH MISCELLANEOUS
611-
The editor also displays non\-us characters (160+). When editing
612-
binary files, you should set
613-
.B display bits
614-
to 7 bits in Midnight Commander's options menu to keep the spacing
615-
clean.
616610
.SH FILES
617611
.I %pkgdatadir%/help/mc.hlp
618612
.IP

doc/man/pl/mc.1.in

-34
Original file line numberDiff line numberDiff line change
@@ -1267,11 +1267,6 @@ włącza okno dialogowe, w którym możesz ustawić przy wykonaniu
12671267
których operacji chcesz być pytany o potwierdzenie.
12681268
.PP
12691269
Menu
1270-
.I Display bits
1271-
pozwala określić jakiego typu znaki twój terminal jest
1272-
w stanie wyświetlić.
1273-
.PP
1274-
Menu
12751270
.I Learn Keys
12761271
pokazuje okno dialogowe, w którym możesz poznać
12771272
które klawisze nie działają i w razie problemów naprawić to.
@@ -1466,18 +1461,6 @@ W tym menu możesz skonfigurować opcje potwierdzania dla kasowania,
14661461
zastępowania, wykonywania przez naciśnięcie klawisza Enter, jak również
14671462
wychodzenia z programu.
14681463
.PP
1469-
.\"NODE " Display bits"
1470-
.SH " Wyświetlanie znaków (Display bits)"
1471-
Używane do konfigurowania zakresu znaków widocznych potem na ekranie.
1472-
To ustawienie może być 7\-bitowe jeśli twój terminal obsługuje tylko
1473-
siedmiobitowe wyjście, ISO\-8859\-1 wyświetla wszystkie znaki z mapy
1474-
ISO\-8859\-1 a pełny 8 bitowy przeznaczony jest dla tych terminali, które radzą
1475-
sobie z wyświetlaniem znaków ośmiobitowych.
1476-
.PP
1477-
Zobacz sekcję
1478-
.IR "Polskie znaki" ,
1479-
po więcej szczegółów na temat ich używania w Midnight Commanderze.
1480-
.PP
14811464
.\"NODE " Learn keys"
14821465
.SH " Nauka klawiszy (Learn keys)"
14831466
W tym oknie możesz przetestować czy twoje klawisz F1\-F20, Home, End itp.
@@ -2101,14 +2084,6 @@ w twoim katalogu domowym zawierający poniższe:
21012084
cat /dev/null > ~/.cache/mc/mcedit/cooledit.error
21022085
.fi
21032086
.PP
2104-
Edytor wyświetla również znaki nieamerykańskie (160+). Kiedy edytujesz plik
2105-
binarny, powinieneś ustawić opcję
2106-
.B display bits
2107-
do 7 bitów w menu opcji, aby utrzymać przejrzystość odstępów między znakami.
2108-
.PP
2109-
Zobacz sekcję Polskie znaki, aby poznać szczegóły na temat używania
2110-
polskich znaków w Midnight Commanderze.
2111-
.PP
21122087
.\"NODE "Completion"
21132088
.SH Dokańczanie
21142089
.PP
@@ -2464,15 +2439,6 @@ i
24642439
RedHat, jeśli masz inną i wiesz jak to ustawić, to napisz do mnie, a ja to
24652440
tu dopiszę [ patrz tłumacz na dole ;)) ]].
24662441
.PP
2467-
Teraz wystarczy już tylko włączyć odpowiednie opcje w menu opcji (klawisz
2468-
F9). W menu opcji wybieramy
2469-
.I Display bits
2470-
i włączamy opcje
2471-
.I ISO 8859\-1
2472-
oraz
2473-
.IR "Full 8 bits input" .
2474-
Potem zapisujemy konfigurację w opcje | Save setup.
2475-
.PP
24762442
I gotowe \- polskie literki działają również w podglądzie i wbudowanym
24772443
edytorze plików.
24782444
.PP

doc/man/ru/mc.1.in

-16
Original file line numberDiff line numberDiff line change
@@ -1896,14 +1896,6 @@ mc на экране.
18961896
.PP
18971897
Пункт
18981898
.\"LINK2"
1899-
Биты символов
1900-
.\"Display bits"
1901-
вызывает диалоговое окно, в котором вы указываете, в каком формате ваш
1902-
терминал будет обрабатывать (вводить и отображать на дисплее)
1903-
информацию, представленную байтами (например, записанную в файле).
1904-
.PP
1905-
Пункт
1906-
.\"LINK2"
19071899
Распознавание клавиш
19081900
.\"Learn keys"
19091901
вызывает диалоговое окно, в котором вы можете протестировать работу
@@ -2323,14 +2315,6 @@ Commander, выделены цветом, определённым ключев
23232315
.I Тени.
23242316
Если эта опция включена, все диалоговые окна и выпадающие меню будут иметь
23252317
тени.
2326-
.\"NODE " Display bits"
2327-
.SH " Биты символов..."
2328-
Этот пункт меню используется для задания диапазона отображаемых на
2329-
дисплее символов. Если терминал поддерживает только 7\-битный вывод, то
2330-
нужно выбрать установку "7 бит". Выбрав "ISO\-8859\-1" вы получите все
2331-
символы из таблицы ISO\-8859\-1, а выбор установки "Полный 8\-битный вывод"
2332-
имеет смысл на тех терминалах, которые могут отображать все 8\-битовые
2333-
символы.
23342318
.\"NODE " Learn keys"
23352319
.SH " Распознавание клавиш..."
23362320
Пункт

doc/man/sr/mc.1.in

-14
Original file line numberDiff line numberDiff line change
@@ -1472,13 +1472,6 @@ L Набраја садржај компримоване архиве врсте
14721472
.PP
14731473
Наредба
14741474
.\"LINK2"
1475-
Битова у приказу
1476-
.\"Display bits"
1477-
отвара дијалог из кога можете да изаберете које знакове ваш терминал
1478-
може да прикаже.
1479-
.PP
1480-
Наредба
1481-
.\"LINK2"
14821475
Научи тастере
14831476
.\"Learn keys"
14841477
отвара дијалог из кога можете да испробате тастере који не функционишу
@@ -1703,13 +1696,6 @@ L Набраја садржај компримоване архиве врсте
17031696
У овом менију можете подесити изборе потврде при брисању, преписивању
17041697
датотека, извршавању датотека притиском на тастер `enter' и завршавању
17051698
рада у програму.
1706-
.\"NODE " Display bits"
1707-
.SH " Битова у приказу"
1708-
Ово се користи за подешавање опсега видљивих знакова на екрану. Ово
1709-
подешавање може да буде `7 бита' или `7\-bit ASCII' ако ваш терминал
1710-
или библиотека `curses' подржавају само седмобитни излаз. Поставка
1711-
`ISO\-8859\-1' приказује све знаке из мапе изо 8859\-1 а `Пуно осмобитно'
1712-
је за оне терминале који могу да прикажу пуне осмобитне знаке.
17131699
.\"NODE " Learn keys"
17141700
.SH " Научи тастере"
17151701
Овај дијалог вам омогућава да испробате и промените функцијске

lib/charsets.c

+5-8
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ const char *cp_source = NULL;
5252

5353
/*** file scope macro definitions ****************************************************************/
5454

55-
#define UNKNCHAR '\001'
56-
57-
#define OTHER_8BIT "Other_8_bit"
55+
#define UNKNCHAR '\001'
56+
#define NO_TRANSLATION "No translation"
5857

5958
/*** file scope type declarations ****************************************************************/
6059

@@ -238,21 +237,19 @@ free_codepages_list (void)
238237
const char *
239238
get_codepage_id (const int n)
240239
{
241-
return (n < 0) ? OTHER_8BIT : ((codepage_desc *) g_ptr_array_index (codepages, n))->id;
240+
return (n < 0) ? NO_TRANSLATION : ((codepage_desc *) g_ptr_array_index (codepages, n))->id;
242241
}
243242

244243
/* --------------------------------------------------------------------------------------------- */
245244

246245
int
247246
get_codepage_index (const char *id)
248247
{
249-
guint i;
250-
251248
if (codepages == NULL)
252249
return -1;
253-
if (strcmp (id, OTHER_8BIT) == 0)
250+
if (strcmp (id, NO_TRANSLATION) == 0)
254251
return -1;
255-
for (i = 0; i < codepages->len; i++)
252+
for (guint i = 0; i < codepages->len; i++)
256253
if (strcmp (id, ((codepage_desc *) g_ptr_array_index (codepages, i))->id) == 0)
257254
return (int) i;
258255
return -1;

lib/global.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ typedef struct
130130
// Numbers of (file I/O) and (input/display) codepages. -1 if not selected
131131
int source_codepage;
132132
int display_codepage;
133-
/*
134-
* If utf-8 terminal utf8_display = TRUE
135-
* Display bits set UTF-8
136-
*/
133+
134+
// If utf-8 terminal utf8_display = TRUE
137135
gboolean utf8_display;
138136

139137
// Set if the nice message (hint) bar is visible

lib/keybind.c

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ static name_keymap_t command_names[] = {
165165
#endif
166166
ADD_KEYMAP_NAME (OptionsVfs),
167167
ADD_KEYMAP_NAME (OptionsConfirm),
168-
ADD_KEYMAP_NAME (OptionsDisplayBits),
169168
ADD_KEYMAP_NAME (EditExtensionsFile),
170169
ADD_KEYMAP_NAME (EditFileHighlightFile),
171170
ADD_KEYMAP_NAME (LinkSymbolicEdit),

lib/keybind.h

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ enum
145145
CK_OptionsConfirm,
146146
CK_PutCurrentLink,
147147
CK_PutOtherLink,
148-
CK_OptionsDisplayBits,
149148
CK_EditExtensionsFile,
150149
CK_EditFileHighlightFile,
151150
CK_LinkSymbolicEdit,

0 commit comments

Comments
 (0)