1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Lowercase version of BackendVtable's displayname.

The current 'displayname' field is designed for presenting in the
config UI, so it starts with a capital letter even when it's not a
proper noun. If I want to name the backend in the middle of a
sentence, I'll need a version that starts with lowercase where
appropriate.

The old field is renamed displayname_tc, to avoid ambiguity.
This commit is contained in:
Simon Tatham
2021-10-23 18:26:34 +01:00
parent efb6589411
commit 5374444879
14 changed files with 34 additions and 21 deletions

View File

@ -338,7 +338,8 @@ const BackendVtable raw_backend = {
.unthrottle = raw_unthrottle,
.cfg_info = raw_cfg_info,
.id = "raw",
.displayname = "Raw",
.displayname_tc = "Raw",
.displayname_lc = "raw",
.protocol = PROT_RAW,
.default_port = 0,
};

View File

@ -445,7 +445,8 @@ const BackendVtable rlogin_backend = {
.unthrottle = rlogin_unthrottle,
.cfg_info = rlogin_cfg_info,
.id = "rlogin",
.displayname = "Rlogin",
.displayname_tc = "Rlogin",
.displayname_lc = "Rlogin", /* proper name, so capitalise it anyway */
.protocol = PROT_RLOGIN,
.default_port = 513,
};

View File

@ -936,7 +936,8 @@ const BackendVtable supdup_backend = {
.unthrottle = supdup_unthrottle,
.cfg_info = supdup_cfg_info,
.id = "supdup",
.displayname = "SUPDUP",
.displayname_tc = "SUPDUP",
.displayname_lc = "SUPDUP", /* proper name, so capitalise it anyway */
.protocol = PROT_SUPDUP,
.default_port = 0137,
.flags = BACKEND_RESIZE_FORBIDDEN | BACKEND_NEEDS_TERMINAL,

View File

@ -1082,7 +1082,8 @@ const BackendVtable telnet_backend = {
.unthrottle = telnet_unthrottle,
.cfg_info = telnet_cfg_info,
.id = "telnet",
.displayname = "Telnet",
.displayname_tc = "Telnet",
.displayname_lc = "Telnet", /* proper name, so capitalise it anyway */
.protocol = PROT_TELNET,
.default_port = 23,
};

View File

@ -71,7 +71,8 @@ const BackendVtable null_backend = {
.unthrottle = null_unthrottle,
.cfg_info = null_cfg_info,
.id = "null",
.displayname = "null",
.displayname_tc = "Null",
.displayname_lc = "null",
.protocol = -1,
.default_port = 0,
};
@ -93,7 +94,8 @@ const BackendVtable loop_backend = {
.unthrottle = null_unthrottle,
.cfg_info = null_cfg_info,
.id = "loop",
.displayname = "loop",
.displayname_tc = "Loop",
.displayname_lc = "loop",
.protocol = -1,
.default_port = 0,
};