Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Synchronet Discussion  <--  <--- Return to Home Page
   Networked Database  Synchronet Discussion   [338 / 900] RSS
 From   To   Subject   Date/Time 
Message   Mortifis    Nightfox   Re: Slyedit Ice   July 21, 2019
 7:52 PM *  

 >   Re: Slyedit Ice
 >   By: Mortifis to Nightfox on Sun Jul 21 2019 11:40 am

 >  Mo> Hey, brah, logged onto my board on my phone 
 >  Mo> using Android JuiceSSH, and went to send a 
 >  Mo> message using SlyEdit Ice which errorred that 
 >  Mo> slyedit requires 80 width, cycled twice the 
 >  Mo> dropped the connection. Anyway to put a 
 >  Mo> condition check and exit gracefully back to 
 >  Mo> the board or give a prompt to change to 
 >  Mo> editor that supports urrent terminal width?

 > That wouldn't be a very simple fix.  SlyEdit uses a width of at least 80 to
 > display the top & bottom informational lines, so in order to support a width
 > of less than 80, the top & bottom lines would need to be reformatted to fit
 > less than 80 columns, and the code in SlyEdit would need to be changed to
 > fit that width.

The only time this is an issue is if a new user signs up one a device with less
than 8- columns (my android phone using JuiceSSH has a width of 38) and has
selected SlyEdit as the editor and then tries to leave a feedback to the SysOP,
it will fail then drop the call and SBBS will delete the new user account ...

so I added 5 lines to SlyEdit.js

inside line 156 if(console.screen_columns < 80)
{
	console.print("\1n\r\n\1h\1w" + EDITOR_PROGRAM_NAME + " requires a
terminal width of at least 80 characters.\1n\r\n\1p";);
	
	var new_term = confirm("Would you like to use the internal editor
instead";);
	if(new_term) { 
	console.print("Editor Changed to Internal!";);
	  user.editor = ""; // blank defaults to internal editor
	}
	exit(1); // 1: Aborted
}  

I tested this and it seems to have the solved the issue.


My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

---
 ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81
 * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Synchronet Discussion  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0795 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_ssekqabvmhk8fjcdqceuf29en5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_ssekqabvmhk8fjcdqceuf29en5, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_ssekqabvmhk8fjcdqceuf29en5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0