mirror of
https://github.com/zsh-users/zsh
synced 2024-09-06 08:25:56 +00:00
18476: Fix menu selection on Linux console
This commit is contained in:
parent
48d0166c1c
commit
f318d64e3d
|
@ -1,3 +1,9 @@
|
||||||
|
2003-05-05 Andrey Borzenkov <bor@zsh.org>
|
||||||
|
|
||||||
|
* 18476: Src/Zle/complist.c, Src/Zle/zle_refresh.c: fix
|
||||||
|
menu selection on terminals without cursor_down or with
|
||||||
|
cursor_down set to ^J (Linux console)
|
||||||
|
|
||||||
2003-05-02 Peter Stephenson <pws@csr.com>
|
2003-05-02 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 18497: README, Etc/NEWS, Fuctions/TCP/tcp_spam: Tweak
|
* 18497: README, Etc/NEWS, Fuctions/TCP/tcp_spam: Tweak
|
||||||
|
|
|
@ -1556,7 +1556,7 @@ singledraw()
|
||||||
mcc2 = singlecalc(&mc2, ml2, &lc2);
|
mcc2 = singlecalc(&mc2, ml2, &lc2);
|
||||||
|
|
||||||
if (md1)
|
if (md1)
|
||||||
tcmultout(TCDOWN, TCMULTDOWN, md1);
|
tc_downcurs(md1);
|
||||||
if (mc1)
|
if (mc1)
|
||||||
tcmultout(TCRIGHT, TCMULTRIGHT, mc1);
|
tcmultout(TCRIGHT, TCMULTRIGHT, mc1);
|
||||||
g = mgtab[ml1 * columns + mc1];
|
g = mgtab[ml1 * columns + mc1];
|
||||||
|
@ -1565,7 +1565,7 @@ singledraw()
|
||||||
putc('\r', shout);
|
putc('\r', shout);
|
||||||
|
|
||||||
if (md2 != md1)
|
if (md2 != md1)
|
||||||
tcmultout(TCDOWN, TCMULTDOWN, md2 - md1);
|
tc_downcurs(md2 - md1);
|
||||||
if (mc2)
|
if (mc2)
|
||||||
tcmultout(TCRIGHT, TCMULTRIGHT, mc2);
|
tcmultout(TCRIGHT, TCMULTRIGHT, mc2);
|
||||||
g = mgtab[ml2 * columns + mc2];
|
g = mgtab[ml2 * columns + mc2];
|
||||||
|
@ -1576,7 +1576,7 @@ singledraw()
|
||||||
if (mstatprinted) {
|
if (mstatprinted) {
|
||||||
int i = lines - md2 - nlnct;
|
int i = lines - md2 - nlnct;
|
||||||
|
|
||||||
tcmultout(TCDOWN, TCMULTDOWN, i - 1);
|
tc_downcurs(i - 1);
|
||||||
compprintfmt(NULL, 0, 1, 1, mline, NULL);
|
compprintfmt(NULL, 0, 1, 1, mline, NULL);
|
||||||
tcmultout(TCUP, TCMULTUP, lines - 1);
|
tcmultout(TCUP, TCMULTUP, lines - 1);
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -1062,7 +1062,7 @@ tc_rightcurs(int ct)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
static int
|
mod_export int
|
||||||
tc_downcurs(int ct)
|
tc_downcurs(int ct)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
Loading…
Reference in a new issue