Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small full screen editor
#1
Hi,

I am sure full screen editors have been around for awhile but here is another one:

Erik.

Version history:

Code: (Select All)
Initial port to QB64 v1.0a
New v2.0a:
    Adds insert cursor for overstrike in Backspace, Tab, and InsertChar.
    Adds support for 40 column editing and display.
New v3.0a:
    Adds ListFiles and SearchFiles.
New v3.1a:
    Fixes some scrolling in SearchFiles.
New v3.2a:
  Adds Ctrl-C copyfile in SearchFiles.
  Adds Ctrl-D changedrive in SearchFiles.
  Adds OldSkool directory delete in SearchFiles.
New v3.3a:
  Adds F1 help key to ScrnEdit.
  Adds F1 help key to SearchFiles.
New v3.4a:
  Adds _hide to shell in SearchFiles.
  Adds drives to file list in SearchFiles.
  Adds shell to vol to SearchFiles.
New v3.5a:
   Moves F2 display in SearchFiles.
   Adds F4 toggle sort order in SearchFiles.
   Display Drive: and Dir: and File: in Display.Screen in SearchFiles.
New v3.6a:
   Adds DriveList to improve display in Display.Screen in SearchFiles.
   Adds custom FileExists and DirExists functions.
   Adds Ctrl-E MKdir and Ctrl-F refresh to SearchFiles.
New v3.7a:
   Adds buffer to Ctrl-C CopyFile in SearchFiles to improve copying speed.
   Adds F8 to recursively load file in ScrnEdit.
New v3.8a:
   Fixes buffer overrun in CopyFile in SearchFiles.
   Fixes pagedown in Ctrl-End in SearchFiles.
   Fixes error with long filename.
New v4.0a:
   Adds Ctrl-G RenameFile in SearchFiles.
   Adds Ambig$ function to ValidFileChar2$
   Adds file exists ValidFileChar3$ function to ScrnEdit.
New v4.1a:
    Adds Tab and Shift-Tab to SearchFiles.
    Adds Control-Right and Control-Left to SearchFiles.
    Adds Control-Up and Control-Down to SearchFiles.
    Checks Ctrl-D ChangeDrive is in drivelist.
New v4.2a:
    Adds F4 AppendFile and F5 InsertFile to ScrnEdit.
    Fixes array error in InsertFile.
    Adds '-/+', 'a-z', 'A-Z', '0-9' to scan filename in SearchFiles.
    Adds F3 to search filename in SearchFile. And Ctrl-F3 to repeat search.
New v4.3a:
    Adds counters and continuous display to ListFiles.
    Adds FormatString$ output display to ListFiles.
New v4.4a:
    Adds prompt for DirSpec in SearchFiles.
    Adds F4 to sort files and F5 to sort dirs in SearchFiles.
    Adds F6 to recursively call SearchFiles.


Attached Files
.txt   scrnedit.txt (Size: 907 bytes / Downloads: 17)
.bas   SCRNEDIT.BAS (Size: 118.97 KB / Downloads: 26)
Reply
#2
Any difference between this one and this: https://qb64phoenix.com/forum/showthread...45#pid5945

Sorry this forum won't let me link to posts properly, I wnat to point to first in thread, your OP Eric about an Editor.
b = b + ...
Reply
#3
(11-11-2023, 02:20 PM)bplus Wrote: Any difference between this one and this: https://qb64phoenix.com/forum/showthread...45#pid5945

Sorry this forum won't let me link to posts properly, I wnat to point to first in thread, your OP Eric about an Editor.

I thought I posted it before but could not find it in my attachments, so, this may be nothing more than an upgrade.

Erik.
Reply
#4
Here is a set of full screen editors with:

One for QB 1.1, QB 4.5, QBX 7.10 and QB64..

Sample full screen editor code list:

  Scrnqb11.bas  -  qb v1.1  -  qbasic
  Scrnqb45.bas  -  qb v4.5  -  qb
  Scrnqb64.bas  -  qb v64  -  qb64pe
  Scrnqbx.bas  -  qb v7.1  -  pds

Thanks, Erik.

Version history:
Code: (Select All)
Initial port to QB64 v1.0a
New v2.0a:
    Adds insert cursor for overstrike in Backspace, Tab, and InsertChar.
    Adds support for 40 column editing and display.
New v3.0a:
    Adds ListFiles and SearchFiles.
New v3.1a:
    Fixes some scrolling in SearchFiles.
New v3.2a:
  Adds Ctrl-C copyfile in SearchFiles.
  Adds Ctrl-D changedrive in SearchFiles.
  Adds OldSkool directory delete in SearchFiles.
New v3.3a:
  Adds F1 help key to ScrnEdit.
  Adds F1 help key to SearchFiles.
New v3.4a:
  Adds _hide to shell in SearchFiles.
  Adds drives to file list in SearchFiles.
  Adds shell to vol to SearchFiles.
New v3.5a:
   Moves F2 display in SearchFiles.
   Adds F4 toggle sort order in SearchFiles.
   Display Drive: and Dir: and File: in Display.Screen in SearchFiles.
New v3.6a:
   Adds DriveList to improve display in Display.Screen in SearchFiles.
   Adds custom FileExists and DirExists functions.
   Adds Ctrl-E MKdir and Ctrl-F refresh to SearchFiles.
New v3.7a:
   Adds buffer to Ctrl-C CopyFile in SearchFiles to improve copying speed.
   Adds F8 to recursively load file in ScrnEdit.
New v3.8a:
   Fixes buffer overrun in CopyFile in SearchFiles.
   Fixes pagedown in Ctrl-End in SearchFiles.
   Fixes error with long filename.
New v4.0a:
   Adds Ctrl-G RenameFile in SearchFiles.
   Adds Ambig$ function to ValidFileChar2$
   Adds file exists ValidFileChar3$ function to ScrnEdit.
New v4.1a:
    Adds Tab and Shift-Tab to SearchFiles.
    Adds Control-Right and Control-Left to SearchFiles.
    Adds Control-Up and Control-Down to SearchFiles.
    Checks Ctrl-D ChangeDrive is in drivelist.
New v4.2a:
    Adds F4 AppendFile and F5 InsertFile to ScrnEdit.
    Fixes array error in InsertFile.
    Adds '-/+', 'a-z', 'A-Z', '0-9' to scan filename in SearchFiles.
    Adds F3 to search filename in SearchFile. And Ctrl-F3 to repeat search.
New v4.3a:
    Adds counters and continuous display to ListFiles.
    Adds FormatString$ output display to ListFiles.
New v4.4a:
    Adds prompt for DirSpec in SearchFiles.
    Adds F4 to sort files and F5 to sort dirs in SearchFiles.
    Adds F6 to recursively call SearchFiles.

[Image: scrnedit.png]


Attached Files
.zip   SCRNED44.ZIP (Size: 76.26 KB / Downloads: 10)
Reply
#5
1) Print Screen
2) Paste screenshot
3) ???
4) Profit
Tread on those who tread on you

Reply
#6
RE: QB64PE version

#0 freak'n monster 1685 LOC
#1 Help or menu or Readme file?
#2 Cut, Copy, Paste?
#3 File New, Open, Save, SaveAS?

I think these much more sensible than Spriggsy's list.

I was hoping to get some editor building tips because I am working on one now.
Eh, maybe some keypress handling I've missed ie Ctrl Right and Left.
b = b + ...
Reply
#7
Apologies, @bplus. I think you must have misunderstood. My list was for suggesting that Eric should provide screenshots of the program.
Tread on those who tread on you

Reply
#8
(11-15-2023, 04:06 PM)SpriggsySpriggs Wrote: 1) Print Screen
2) Paste screenshot
3) ???
4) Profit

Done!

Ayn Rand: "Profit profit profit"..

The most difficult part is solving the ??? connection.
Reply
#9
(11-15-2023, 04:59 PM)bplus Wrote: RE: QB64PE version

#0 freak'n monster 1685 LOC
#1 Help or menu or Readme file?
#2 Cut, Copy, Paste?
#3 File New, Open, Save, SaveAS?

I think these much more sensible than Spriggsy's list.

I was hoping to get some editor building tips because I am working on one now.
Eh, maybe some keypress handling I've missed ie Ctrl Right and Left.

Also try:

Ctrl-k = insert ascii char
Ctrl-r = searchreplace
Ctrl-f = search string
Ctrl-j = jump to byte
Ctrl-g = goto to line
Ctrl-F3 - repeat replace
F3 - continue search


[Image: scrnedit2.png]
Reply
#10
Quote:#0 freak'n monster 1685 LOC
@bplus: Now 1779 lines.
Reply




Users browsing this thread: 2 Guest(s)