Odd... One more experiment, if you'd like: after exiting yi can you try "tput rmcup". If this restores the screen as expected then, for some reason, the "rmcup" emitted by vty shutdown is not being output by yi. That would narrow down the possible issues quite a lot. vty's interface does not assure "shutdown" will always be applied at the end of a program. In general this is impossible (EG: sigkill) but improvements can certainly be made.
Cheers, Corey -Corey O'Connor [email protected] http://corebotllc.com/ On Sat, Jun 7, 2014 at 5:12 PM, Mateusz Kowalczyk <[email protected]> wrote: > On 06/08/2014 01:49 AM, Corey O'Connor wrote: > > I don't know how yi could interfere, but try without yi: > > > > $ vty-demo > > <hit esc> > > > > Screen should be restored. > > > > -Corey O'Connor > > [email protected] > > http://corebotllc.com/ > > > > With vty-demo, the screen is restored as expected. > > > On Sat, Jun 7, 2014 at 4:31 PM, Corey O'Connor <[email protected]> > > wrote: > > > >> No screen or tmux? > >> That sounds like the same setup as mine. > >> > >> > >> -Corey O'Connor > >> [email protected] > >> http://corebotllc.com/ > >> > >> > >> On Sat, Jun 7, 2014 at 3:27 PM, Mateusz Kowalczyk < > [email protected] > >>> wrote: > >> > >>> On 06/08/2014 12:15 AM, Corey O'Connor wrote: > >>>> OS? > >>> > >>> NixOS > >>> > >>>> That functionality uses "smcup"/"rmcup" terminfo capability strings. > vty > >>>> takes the strings reported by terminfo for the current terminal and > uses > >>>> them without any changes. This is roughly equivalent to the commands: > >>>> > >>>> $ tput smcup > >>>> <anything> > >>>> $ tput rmcup > >>>> > >>>> Which should clear the screen and restore the screen. Try that and see > >>> if > >>>> it works in your setup. > >>> > >>> This restores the screen as one would expect. > >>> > >>>> -Corey O'Connor > >>>> [email protected] > >>>> http://corebotllc.com/ > >>>> > >>>> > >>>> On Sat, Jun 7, 2014 at 2:53 PM, Mateusz Kowalczyk < > >>> [email protected]> > >>>> wrote: > >>>> > >>>>> On 06/07/2014 10:58 PM, Corey O'Connor wrote: > >>>>>> On Sat, Jun 7, 2014 at 11:52 AM, Mateusz Kowalczyk < > >>>>> [email protected]> > >>>>>> wrote: > >>>>>> > >>>>>>> Now if I do the same, I get dropped back in the terminal > >>>>>>> near the top but the screen is not cleared so whatever text was > there > >>>>>>> before is still there[1]. > >>>>>>> > >>>>>> > >>>>>> Hmm! That would be a regression. What terminal are you using, TERM, > >>> and > >>>>> is > >>>>>> it set to 8bit mode? I'm using konsole, TERM=xterm-256color, and the > >>>>> screen > >>>>>> is restored as expected. > >>>>>> > >>>>>> [2] is not resolved. > >>>>>> > >>>>>> Cheers, > >>>>>> Corey > >>>>>> > >>>>>> > >>>>>> -Corey O'Connor > >>>>>> [email protected] > >>>>>> http://corebotllc.com/ > >>>>>> > >>>>> > >>>>> konsole, TERM=xterm, setting it to xterm-256color makes to > difference. > >>>>> > >>>>> -- > >>>>> Mateusz K. > >>>>> > >>>>> -- > >>>>> -- > >>>>> Yi development mailing list > >>>>> [email protected] > >>>>> http://groups.google.com/group/yi-devel > >>>>> --- > >>>>> You received this message because you are subscribed to the Google > >>> Groups > >>>>> "yi.devel" group. > >>>>> To unsubscribe from this group and stop receiving emails from it, > send > >>> an > >>>>> email to [email protected]. > >>>>> For more options, visit https://groups.google.com/d/optout. > >>>>> > >>>> > >>> > >>> > >>> -- > >>> Mateusz K. > >>> > >>> -- > >>> -- > >>> Yi development mailing list > >>> [email protected] > >>> http://groups.google.com/group/yi-devel > >>> --- > >>> You received this message because you are subscribed to the Google > Groups > >>> "yi.devel" group. > >>> To unsubscribe from this group and stop receiving emails from it, send > an > >>> email to [email protected]. > >>> For more options, visit https://groups.google.com/d/optout. > >>> > >> > >> > > > > > -- > Mateusz K. > > -- > -- > Yi development mailing list > [email protected] > http://groups.google.com/group/yi-devel > --- > You received this message because you are subscribed to the Google Groups > "yi.devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Yi development mailing list [email protected] http://groups.google.com/group/yi-devel --- You received this message because you are subscribed to the Google Groups "yi.devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
