Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I don't drink, I don't like it, it makes me feel too good. -- K. Coates


dovenet / Synchronet Programming / DDMsgReader: When forwarding a message, the subject can now be edited

SubjectAuthor
o DDMsgReader: When forwarding a message, the subject can now be editedRob Swindell

1
DDMsgReader: When forwarding a message, the subject can now be edited

<64010350.46685.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=686&group=DOVE-Net.Synchronet_Programming#686

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: rob.swindell@VERT (Rob Swindell)
To: GitLab note in main/sbbs
Subject: DDMsgReader: When forwarding a message, the subject can now be edited
Message-ID: <64010350.46685.syncprog@vert.synchro.net>
Date: Thu, 2 Mar 2023 05:13:04 -0800
X-Comment-To: GitLab note in main/sbbs
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/0edce2af4 Feb 28 2023 GCC 12.2.0
X-FTN-MSGID: 46685.syncprog@1:103/705 2866efad
X-FTN-CHRS: CP437 2
WhenImported: 20230302121304-0800 41e0
WhenExported: 20230302161806-0800 41e0
ExportedFrom: VERT syncprog 46685
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Rob Swindell - Thu, 2 Mar 2023 13:13 UTC

https://gitlab.synchro.net/main/sbbs/-/merge_requests/262#note_3319

The proper way to edit a string is to pass the K_EDIT mode flag to console.getstr(), e.g.
`var msgSubject = console.getstr(console.screen_columns - console.strlen(subjPromptText) - 1, K_LINE | K_EDIT);`

.... as seen in numerous examples through-out exec/*.js.

This method of key-stuffing using ungetstr() shouldn't be necessary.

---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net


dovenet / Synchronet Programming / DDMsgReader: When forwarding a message, the subject can now be edited

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor