| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | wordstar and text modes |
Hi All.
wordstar 4.00 is an excellent text editor for large files
especiall those that are bigger than available ram.
the only problem is it doesn't compensate for the text mode you run it in.
this little btm fixes that by writing to the fields in the executable that
hold that info.
:: texted.btm - /ws/texted.exe is a copy of wordstar 4.0 configured
:: for editing ascii files (non-documents)
::
setlocal
set fh=%{at}fileopen[c:\ws\texted.exe,append, b]
if %{at}fileseek[%fh,%{at}eval[0xaa1],0] == 0 goto panic
if %{at}filewriteb[%fh,2,%{at}char[%_rows %_columns]]] == -1 goto panic
if %{at}fileclose[%fh] == -1 (echo file error ^ quit )
goto work
;panic
echo file error!
if %{at}fileclose[%fh] == -1 rem
quit
:work
::stuff "n %1
c:\ws\texted %1
-=> Bye <=-
---
* Origin: Money is the root of all wealth. (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.