[gentoo-user] Console scrollback

2021-01-13 Thread Peter Humphrey
Hello list, I see that the kernel code to scroll the console has been stripped out [1]. What do people use instead? This loss is a nuisance while installing a new system, as I am still trying to do on my old laptop. 1. https://soylentnews.org/article.pl?sid=20/09/15/1824233&from=rss -- Rega

Re: [gentoo-user] Re: Screen/driver/xserver freezing after suspension

2021-01-13 Thread Igor Mróz
You mean 100%? Nope, all looks normal. I even tried to build elogind with policykit USE, but with no luck. loginctl shows that session/seat is active all the time. Igor On Mon, 11 Jan 2021 20:05:20 +0100 "J. Roeleveld" wrote: > On 11 January 2021 19:33:55 CET, "Igor Mróz" wrote: > >I don't

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Michael
On Wednesday, 13 January 2021 10:30:19 GMT Peter Humphrey wrote: > Hello list, > > I see that the kernel code to scroll the console has been stripped out [1]. > What do people use instead? > > This loss is a nuisance while installing a new system, as I am still trying > to do on my old laptop. >

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Peter Humphrey
On Wednesday, 13 January 2021 10:38:01 GMT Michael wrote: > On Wednesday, 13 January 2021 10:30:19 GMT Peter Humphrey wrote: > > Hello list, > > > > I see that the kernel code to scroll the console has been stripped out > > [1]. What do people use instead? > > > > This loss is a nuisance while in

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Andreas Fink
On Wed, 13 Jan 2021 10:55:18 + Peter Humphrey wrote: > On Wednesday, 13 January 2021 10:38:01 GMT Michael wrote: > > On Wednesday, 13 January 2021 10:30:19 GMT Peter Humphrey wrote: > > > Hello list, > > > > > > I see that the kernel code to scroll the console has been stripped out > > > [1].

Re: [gentoo-user] Re: Screen/driver/xserver freezing after suspension

2021-01-13 Thread J. Roeleveld
Please don't top-post. On Wednesday, January 13, 2021 11:32:44 AM CET Igor Mróz wrote: > You mean 100%? Nope, all looks normal. I even tried to build elogind with > policykit USE, but with no luck. loginctl shows that session/seat is active > all the time. > > Igor > > > On Mon, 11 Jan 2021 20:

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Peter Humphrey
On Wednesday, 13 January 2021 11:21:54 GMT Andreas Fink wrote: > How about this (works with bash, not sure about other shells): > emerge |& less > > This should work with all shells: > emerge 2>&1 | less That's better; thanks Andreas. -- Regards, Peter.

Re: [gentoo-user] Re: Screen/driver/xserver freezing after suspension

2021-01-13 Thread Igor Mróz
> Please don't top-post. Sorry, trying to change my email writing habit ;) > Reason I asked: On one of my systems, I have the occasional issue where a > screenlock-task is "hanging" and using 100% CPU. > Killing that, restores the screen back to normal. Unfortunately there are no signs of app

Re: [gentoo-user] Re: Screen/driver/xserver freezing after suspension

2021-01-13 Thread J. Roeleveld
On Wednesday, January 13, 2021 3:58:55 PM CET Igor Mróz wrote: > > Please don't top-post. > > Sorry, trying to change my email writing habit ;) > > > Reason I asked: On one of my systems, I have the occasional issue where a > > screenlock-task is "hanging" and using 100% CPU. > > Killing that, r

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Alan Mackenzie
Hello, Peter. On Wed, Jan 13, 2021 at 10:30:19 +, Peter Humphrey wrote: > Hello list, > I see that the kernel code to scroll the console has been stripped out > [1]. This is appalling. I do all my work on the console (apart from web browsing), and with this development, Linux effectively b

[gentoo-user] python3 question

2021-01-13 Thread n952162
Hello.  In python3, how do you do this? tgt = 'gebuchte Umsätze;' In python2, you could do this: tgt = unicode ('gebuchte Umsätze;'.decode ('latin1')) but that gives: SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe4 in position 12: invalid continuation byte In fact, any cons

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Neil Bothwick
On Wed, 13 Jan 2021 18:14:39 +, Alan Mackenzie wrote: > > I see that the kernel code to scroll the console has been stripped out > > [1]. > > This is appalling. I do all my work on the console (apart from web > browsing), and with this development, Linux effectively becomes unusable > to

Re: [gentoo-user] python3 question

2021-01-13 Thread n952162
On 1/13/21 7:31 PM, n952162 wrote: Hello.  In python3, how do you do this? tgt = 'gebuchte Umsätze;' In python2, you could do this: tgt = unicode ('gebuchte Umsätze;'.decode ('latin1')) but that gives: SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe4 in position 12: invalid

[gentoo-user] Re: python3 question

2021-01-13 Thread Grant Edwards
On 2021-01-13, n952162 wrote: > Hello. In python3, how do you do this? Please explain what "this" is trying to accomplish, and we can tell you how to do it in Python3. Are you trying to convert from Unicode to Latin1 and back to Unicode? Python 3.8.6 (default, Jan 2 2021, 20:25:58) [GCC 9.

Re: [gentoo-user] Re: python3 question

2021-01-13 Thread n952162
On 1/13/21 7:59 PM, Grant Edwards wrote: On 2021-01-13, n952162 wrote: Hello. In python3, how do you do this? Please explain what "this" is trying to accomplish, and we can tell you how to do it in Python3. Are you trying to convert from Unicode to Latin1 and back to Unicode? Python 3.8.6

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Peter Humphrey
On Wednesday, 13 January 2021 18:14:39 GMT Alan Mackenzie wrote: > Hello, Peter. > > On Wed, Jan 13, 2021 at 10:30:19 +, Peter Humphrey wrote: > > Hello list, > > > > I see that the kernel code to scroll the console has been stripped out > > [1]. > > This is appalling. I do all my work on t

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Grant Taylor
On 1/13/21 11:14 AM, Alan Mackenzie wrote: This is appalling. I do all my work on the console (apart from web browsing), and with this development, Linux effectively becomes unusable to me. I will NOT be bullied into using second rate alternatives like X-Windows terminals. Wow. I don't thi

Re: [gentoo-user] python3 question

2021-01-13 Thread n952162
On 1/13/21 7:57 PM, n952162 wrote: On 1/13/21 7:31 PM, n952162 wrote: Hello.  In python3, how do you do this? tgt = 'gebuchte Umsätze;' In python2, you could do this: tgt = unicode ('gebuchte Umsätze;'.decode ('latin1')) but that gives: SyntaxError: (unicode error) 'utf-8' codec can't decod

Re: [gentoo-user] python3 question [RESOLVED]

2021-01-13 Thread n952162
On 1/13/21 8:41 PM, n952162 wrote: On 1/13/21 7:57 PM, n952162 wrote: On 1/13/21 7:31 PM, n952162 wrote: Hello.  In python3, how do you do this? tgt = 'gebuchte Umsätze;' In python2, you could do this: tgt = unicode ('gebuchte Umsätze;'.decode ('latin1')) but that gives: SyntaxError: (unic

[gentoo-user] Re: python3 question

2021-01-13 Thread Grant Edwards
On 2021-01-13, n952162 wrote: > # -*- coding: utf-8 -*- [ this has to be in line1 or line2!!! ] If you have that line in your source code, make sure your editor is saving the file in UTF-8 encoding. > Oh, I think that gave me a solution! > > # -*- coding: latin1 -*- [ this has to be in line1 or

Re: [gentoo-user] Re: python3 question

2021-01-13 Thread n952162
On 1/13/21 8:57 PM, Grant Edwards wrote: On 2021-01-13, n952162 wrote: # -*- coding: utf-8 -*- [ this has to be in line1 or line2!!! ] If you have that line in your source code, make sure your editor is saving the file in UTF-8 encoding. Oh, I think that gave me a solution! # -*- coding: l

Re: [gentoo-user] Re: python3 question

2021-01-13 Thread Victor Ivanov
On 13/01/2021 20:06, n952162 wrote: What encoding is your editor using? vi?  How would I determine that?  My locale is C You could use: :set fenc to display the current encoding used for the file, or :set fenc=utf8 to force UTF-8 or any other encoding of your chosing. You can also ad

Re: [gentoo-user] Re: python3 question

2021-01-13 Thread n952162
On 1/13/21 9:22 PM, Victor Ivanov wrote: On 13/01/2021 20:06, n952162 wrote: What encoding is your editor using? vi?  How would I determine that?  My locale is C You could use:   :set fenc to display the current encoding used for the file, or   :set fenc=utf8 to force UTF-8 or any other

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Alan Mackenzie
Hello, Grant. On Wed, Jan 13, 2021 at 12:32:28 -0700, Grant Taylor wrote: > On 1/13/21 11:14 AM, Alan Mackenzie wrote: > > This is appalling. I do all my work on the console (apart from web > > browsing), and with this development, Linux effectively becomes > > unusable to me. I will NOT be bu

Re: [gentoo-user] Console scrollback

2021-01-13 Thread Grant Taylor
On 1/13/21 2:56 PM, Alan Mackenzie wrote: Hello, Grant. Hi Alan, Well, there's really not much that can't be done in a terminal emulator. But it's the manner of the doing that's important. Okay. I can appreciate and respect that response. Doing text work in X is s l u g g i s h. Chang

[gentoo-user] Re: Console scrollback

2021-01-13 Thread Grant Edwards
On 2021-01-13, Alan Mackenzie wrote: > I think bringing up a new Gentoo system absolutely requires working in > the console, certainly up to the point where X11 and a Window Manager > have been installed and debugged. I usually install Gentoo via ssh. The article I read about the removal of Lin

Re: [gentoo-user] Re: Console scrollback

2021-01-13 Thread Neil Bothwick
On Wed, 13 Jan 2021 22:15:25 - (UTC), Grant Edwards wrote: > FWOW, if you really want backscrolling on the console, you can get > that with screen, but doing so would drive me nuts, since I'd have to > break all my fingers to stop them from typeing ctrl-A to move the > start of a line. The de

[gentoo-user] Re: Console scrollback

2021-01-13 Thread Grant Edwards
On 2021-01-13, Neil Bothwick wrote: > On Wed, 13 Jan 2021 22:15:25 - (UTC), Grant Edwards wrote: > >> FWOW, if you really want backscrolling on the console, you can get >> that with screen, but doing so would drive me nuts, since I'd have to >> break all my fingers to stop them from typeing ct

Re: [gentoo-user] Re: Console scrollback

2021-01-13 Thread Grant Taylor
On 1/13/21 4:06 PM, Grant Edwards wrote: I really should try to figure out a control-character that's not used by emacs or the tty driver I think there are very few, if any, keys used by the TTY driver. I suspect you are thinking of the line editor in the shell, e.g. readline. I can see how C

Re: [gentoo-user] Re: Console scrollback

2021-01-13 Thread Neil Bothwick
On Wed, 13 Jan 2021 23:06:54 - (UTC), Grant Edwards wrote: > > The decision to use Ctrl-A seems insane as it is such a well used key > > combination. I used to change it to Ctrl-B, but now I use tmux, which > > uses Ctrl-B by default. > > Nope, ctrl-B is move-backwards-one-character. That'

[gentoo-user] Re: Console scrollback

2021-01-13 Thread Grant Edwards
On 2021-01-14, Grant Taylor wrote: > On 1/13/21 4:06 PM, Grant Edwards wrote: >> I really should try to figure out a control-character that's not used >> by emacs or the tty driver > > I think there are very few, if any, keys used by the TTY driver. I > suspect you are thinking of the line edito