Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Karl's version of Parkinson's Law: Work expands to exceed the time alloted it.


devel / comp.lang.python / Re-design the position of the RPROMPT string.

SubjectAuthor
o Re-design the position of the RPROMPT string.hongy...@gmail.com

1
Re-design the position of the RPROMPT string.

<a072925a-1d8f-4272-99c0-91022b965726n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15021&group=comp.lang.python#15021

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:ac8:67d7:: with SMTP id r23mr6198250qtp.227.1630827405267;
Sun, 05 Sep 2021 00:36:45 -0700 (PDT)
X-Received: by 2002:ac8:4b79:: with SMTP id g25mr6146070qts.279.1630827405033;
Sun, 05 Sep 2021 00:36:45 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sun, 5 Sep 2021 00:36:44 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=103.138.53.8; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.138.53.8
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a072925a-1d8f-4272-99c0-91022b965726n@googlegroups.com>
Subject: Re-design the position of the RPROMPT string.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Sun, 05 Sep 2021 07:36:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: hongy...@gmail.com - Sun, 5 Sep 2021 07:36 UTC

I forked and made some improvements to the ariadne package [1]. I noticed that the current RPROMPT line is composed by percol.view.PROMPT [2] and percol.view.__class__.RPROMPT [3], as shown below:

X10DAi-00 (M-h/M-n)> M-m:string Path:C-d Local:C-l Unique:M-r Exit0:M-t Fold:F1,F2,F3

But this leaves very little room for the search string used to filter the history. So, I want to split the RPROMPT line into two lines as follows:

M-m:string Path:C-d Local:C-l Unique:M-r Exit0:M-t Fold:F1,F2,F3
X10DAi-00 (M-h/M-n)>

But I've tried a lot and still don't know how to do it. Any hints will be highly appreciated.

Regareds,
HY

[1] https://github.com/hongyi-zhao/ariadne
[2] https://github.com/hongyi-zhao/ariadne/blob/ec864434b8a947b801f019e84c827c3a96dcf7e4/rc.py#L56
[3] https://github.com/hongyi-zhao/ariadne/blob/ec864434b8a947b801f019e84c827c3a96dcf7e4/rc.py#L73

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor