Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #36952
| Subject | Re: Gparted questions |
|---|---|
| Newsgroups | comp.os.linux.misc |
| References | (9 earlier) <vsWcnZVD6L2qG33-nZ2dnZfqnPWdnZ2d@earthlink.com> <trq1mc$2ub8u$1@dont-email.me> <trsf59$3dbv1$1@dont-email.me> <g7adnf_Nss3rfXz-nZ2dnZfqn_udnZ2d@earthlink.com> <trtgq4$3nuo8$1@dont-email.me> |
| From | "26C.Z968" <26C.Z968@noaada.net> |
| Date | 2023-02-08 00:22 -0500 |
| Message-ID | <geednVnZf7rirH7-nZ2dnZfqn_adnZ2d@earthlink.com> (permalink) |
On 2/7/23 7:39 AM, Dan Espen wrote:
> "26C.Z968" <26C.Z968@noaada.net> writes:
>
>> On 2/6/23 10:05 PM, Dan Espen wrote:
>>> Rich <rich@example.invalid> writes:
>>>
>>>> 26C.Z968 <26C.Z968@noaada.net> wrote:
>>>>> On 2/3/23 9:23 AM, Rich wrote:
>>>>>> 26C.Z968 <26C.Z968@noaada.net> wrote:
>>>>>>> On 2/2/23 9:28 AM, Jim Jackson wrote:
>>>>>>>> On 2023-02-02, 26C.Z968 <26C.Z968@noaada.net> wrote:
>>>>>>>>>
>>>>>>>>> STILL have to use Ctrl-Z to quit Python3 in Linux ....
>>>>>>>>
>>>>>>>> errrr..... On my linux system Ctrl-D quits, CTtrl-Z puts python in the
>>>>>>>> background but stopped.
>>>>>>>
>>>>>>>
>>>>>>> I use Deb derivs with bash. If I "python3" then only
>>>>>>> Ctl-Z seems to make it stop. You'd think they'd put
>>>>>>> a "quit" command into python eh ?
>>>>>>
>>>>>> They did:
>>>>>>
>>>>>> $ rlwrap python3
>>>>>> Python 3.7.2 (default, Feb 4 2020, 00:09:47)
>>>>>> [GCC 4.8.2] on linux
>>>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>> >>> exit()
>>>>>> $
>>>>>
>>>>> "rlwrap" ? Never needed it.
>>>>
>>>> https://github.com/hanslub42/rlwrap
>>>>
>>>> rlwrap is a 'readline wrapper', a small utility that uses the GNU
>>>> Readline library to allow the editing of keyboard input for any
>>>> command.
>>> Sure looks to me like Python is either using readline or doing a
>>> real
>>> good imitation.
>>
>> Well, it's kinda 'readline()' but aimed at the keyboard
>> instead of a disk file. In Linux at least most everything
>> *is* a file, or treated as such, at some level. The trick
>> is FINDING the 'keyboard file' without a bunch of really
>> hairy code like dealing with displays in 'X' ....
>>
>> Hmm ... a brainfart from the old days ... is there a Python
>> library that'll let you poke stuff into the keyboard buffer ?
>> Great way to emulate user input real fast for apps that
>> demand "user interaction".
>
> More information on how Python uses either readline or libedit:
>
> https://docs.python.org/3/library/readline.html
>
> Sure looks to me like "rlwrap" is not needed.
I've never needed to use it in a dozen years
of Python. MAY have some obscure applications
however.
DO wanna know the latest trix in poking the
keyboard buffer though ... FINDING it is
the first big trick. These days it's all
very 'abstracted' - local instances buried
really deep with obscure names and such.
OK for most uses UNLESS you wanna automatically
put text into annoying prompts/forms over and
over and over.
I kinda stayed away from Python for a long time,
mostly because I don't like slow interpreted
languages - gimme executables anytime. However
once the "improved" P3 got semi-decent I decided
to give it a shot. It ain't bad and, at this
point, really kinda DOES have a library for
*everything*. There's stuff that's (near)
impossible/incomprehensible in 'C' that's super
easy in P3.
DO wish Python used formal bracketed ops instead
of relying on indent alone ..... 'C' {} or
Pascal Begin End are clearer and surer.
Gotta see what P4 is gonna DO to my P3 programs
though. They'll have a new, "improved", paradigm
after all and it'll take YEARS to port over all
those old libraries :-)
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Gparted questions vjp2.at@at.BioStrategist.dot.dot.com - 2023-01-31 00:25 +0000
Re: Gparted questions Rockinghorse Winner <Rockinghorse@amgen.com> - 2023-01-31 01:59 +0000
Re: Gparted questions Bobbie Sellers <bliss@mouse-potato.com> - 2023-01-30 17:59 -0800
Re: Gparted questions Andreas Kohlbach <ank@spamfence.net> - 2023-01-31 11:32 -0500
Re: Gparted questions Marco Moock <mo01@posteo.de> - 2023-01-31 07:41 +0100
Re: Gparted questions The Natural Philosopher <tnp@invalid.invalid> - 2023-01-31 10:04 +0000
Re: Gparted questions vjp2.at@at.BioStrategist.dot.dot.com - 2023-01-31 18:11 +0000
Re: Gparted questions Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2023-01-31 20:25 +0200
Re: Gparted questions The Natural Philosopher <tnp@invalid.invalid> - 2023-01-31 18:28 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-03 00:57 -0500
Re: Gparted questions Marco Moock <mo01@posteo.de> - 2023-01-31 20:18 +0100
Re: Gparted questions The Natural Philosopher <tnp@invalid.invalid> - 2023-02-01 10:44 +0000
Re: Gparted questions Bobbie Sellers <bliss@mouse-potato.com> - 2023-01-31 11:30 -0800
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-01 00:30 -0500
Re: Gparted questions Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2023-02-01 18:03 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-01 22:38 -0500
Re: Gparted questions Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2023-02-02 04:01 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-02 00:17 -0500
Re: Gparted questions Jim Jackson <jj@franjam.org.uk> - 2023-02-02 14:28 +0000
Re: Gparted questions Andreas Kohlbach <ank@spamfence.net> - 2023-02-02 15:14 -0500
Re: Gparted questions Jim Jackson <jj@franjam.org.uk> - 2023-02-02 20:44 +0000
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-02 22:55 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-03 00:24 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-03 14:20 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 00:51 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-04 16:17 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 23:14 -0500
Re: Gparted questions The Natural Philosopher <tnp@invalid.invalid> - 2023-02-05 08:32 +0000
Re: Gparted questions Dan Espen <dan1espen@gmail.com> - 2023-02-03 10:14 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 00:56 -0500
Re: Gparted questions Fritz Wuehler <fritz@spamexpire-202302.rodent.frell.theremailer.net> - 2023-02-04 14:35 +0000
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-04 16:20 +0000
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-04 16:19 +0000
Re: Gparted questions Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-02-02 21:28 +0000
Re: Gparted questions Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2023-02-02 22:48 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-03 00:46 -0500
Re: Gparted questions Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2023-02-04 01:35 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 01:48 -0500
Re: Gparted questions Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2023-02-05 18:11 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-05 23:26 -0500
Re: Gparted questions Bobbie Sellers <bliss@mouse-potato.com> - 2023-02-05 22:12 -0800
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-08 01:11 -0500
Re: Gparted questions The Natural Philosopher <tnp@invalid.invalid> - 2023-02-03 08:50 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 01:53 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-03 00:23 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-03 14:23 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-05 23:46 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-06 05:03 +0000
Re: Gparted questions Dan Espen <dan1espen@gmail.com> - 2023-02-06 22:05 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-07 00:23 -0500
Re: Gparted questions Dan Espen <dan1espen@gmail.com> - 2023-02-07 07:39 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-07 13:53 +0000
Re: Gparted questions Dan Espen <dan1espen@gmail.com> - 2023-02-07 09:42 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-08 01:15 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-08 00:22 -0500
Re: Gparted questions Richard Kettlewell <invalid@invalid.invalid> - 2023-02-08 08:45 +0000
Re: Gparted questions Dan Espen <dan1espen@gmail.com> - 2023-02-08 11:34 -0500
Re: Gparted questions Richard Kettlewell <invalid@invalid.invalid> - 2023-02-08 17:18 +0000
Re: Gparted questions Dan Espen <dan1espen@gmail.com> - 2023-02-08 13:34 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-08 22:27 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-07 13:51 +0000
Re: Gparted questions Jim Jackson <jj@franjam.org.uk> - 2023-02-03 19:00 +0000
Re: Gparted questions "Carlos E.R." <robin_listas@es.invalid> - 2023-02-03 20:33 +0100
Re: Gparted questions Fritz Wuehler <fritz@spamexpire-202302.rodent.frell.theremailer.net> - 2023-02-04 02:07 +0100
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-06 00:04 -0500
Re: Gparted questions Dudete deSpélècz <dudete@never.you.mind.invalid> - 2023-02-04 19:27 +0000
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-04 19:52 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 22:00 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 21:56 -0500
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 21:57 -0500
Re: Gparted questions "Carlos E. R." <robin_listas@es.invalid> - 2023-02-02 13:22 +0100
Re: Gparted questions pH <wNOSPAMp@gmail.org> - 2023-02-04 02:40 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-04 23:03 -0500
Re: Gparted questions "Carlos E. R." <robin_listas@es.invalid> - 2023-02-02 13:02 +0100
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-03 00:50 -0500
Re: Gparted questions Jack Strangio <jackstrangio@yahoo.com> - 2023-02-08 02:46 +0000
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-08 01:28 -0500
Re: Gparted questions Bobbie Sellers <bliss@mouse-potato.com> - 2023-02-08 19:55 -0800
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-10 00:24 -0500
Re: Gparted questions Rich <rich@example.invalid> - 2023-02-10 14:08 +0000
Re: Gparted questions "Carlos E.R." <robin_listas@es.invalid> - 2023-02-10 22:47 +0100
Re: Gparted questions "26C.Z968" <26C.Z968@noaada.net> - 2023-02-11 01:50 -0500
Re: Gparted questions The Natural Philosopher <tnp@invalid.invalid> - 2023-02-11 08:25 +0000
csiph-web