Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
3ebc9f18
Commit
3ebc9f18
authored
5 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Help page.
parent
a7da79f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xtrn/go-for/go-for.js
+20
-15
20 additions, 15 deletions
xtrn/go-for/go-for.js
xtrn/go-for/help.txt
+17
-0
17 additions, 0 deletions
xtrn/go-for/help.txt
with
37 additions
and
15 deletions
xtrn/go-for/go-for.js
+
20
−
15
View file @
3ebc9f18
...
...
@@ -2,23 +2,18 @@ load('sbbsdefs.js');
load
(
'
scrollbox.js
'
);
load
(
'
typeahead.js
'
);
/* go-for
* a really lousy gopher client
* hit g to go to some address:port
* [enter] select item
* [tab] next item
* ` (backtick) previous item
* [up]/[down] to scroll
* [left]/[right] history navigation
*/
/* To do
* - Help screen
* - Save current item idx for each element in history, so place isn't lost when going back
* -
S
upport
m
or
e item types (Index-Search Server, *maybe* telnet)
* -
Improve status bar feedback re: document loading steps & progress
* -
Add s
upport
f
or
Index-Search
* -
Add sysop configurable host whitelist for telnet selectors (not the telnet addresses, but the gopher server's hostname)
* - Improve address input (brighter, autodelete) (typeahead.js)
* - Include history / bookmarks / sysop mandated entries in typeahead address suggestions
* - Improve highlight visibility
* - Page up / Page down (in scrollbox.js)
* - Shift-Tab? Would have to store escaped state in input loop (I think)
* - Push/pop bbs.system_status; set SS_MOFF for duration of session
* - Maybe have a pending notifications thingy
*/
const
cache_ttl
=
300
;
// seconds - make configgy
...
...
@@ -98,7 +93,7 @@ function get_address() {
const
typeahead
=
new
Typeahead
({
x
:
1
,
y
:
1
,
prompt
:
'
Address:
'
,
prompt
:
'
\
0014
\
001h
\
001w
Address:
'
,
text
:
'
gopher.floodgap.com:70
'
});
const
ret
=
typeahead
.
getstr
().
split
(
'
:
'
);
...
...
@@ -181,8 +176,13 @@ function go_for(host, port, selector, type, skip_cache) {
state
.
doc
=
[];
state
.
item
=
-
1
;
state
.
item_type
=
type
;
var
fn
=
skip_cache
?
false
:
go_cache
(
host
,
port
,
selector
);
if
(
!
fn
)
fn
=
go_fetch
(
host
,
port
,
selector
,
type
);
var
fn
;
if
(
host
==
'
go-for
'
&&
port
==
0
)
{
fn
=
js
.
exec_dir
+
selector
;
}
else
{
fn
=
skip_cache
?
false
:
go_cache
(
host
,
port
,
selector
);
if
(
!
fn
)
fn
=
go_fetch
(
host
,
port
,
selector
,
type
);
}
state
.
host
=
host
;
state
.
port
=
port
;
state
.
selector
=
selector
;
...
...
@@ -274,6 +274,8 @@ function set_status(msg) {
console
.
gotoxy
(
1
,
console
.
screen_rows
);
console
.
putmsg
(
'
\
0014
\
001h
\
001w
'
+
state
.
status_msg
);
console
.
cleartoeol
(
BG_BLUE
|
WHITE
);
console
.
gotoxy
(
console
.
screen_columns
-
5
,
console
.
screen_rows
);
console
.
putmsg
(
'
\
0014
\
001h
\
001wH)elp
'
);
console
.
attributes
=
a
;
}
...
...
@@ -391,6 +393,9 @@ function main() {
case
KEY_DOWN
:
scrollbox
.
getcmd
(
state
.
input
);
break
;
case
'
h
'
:
go_get
(
'
go-for
'
,
0
,
'
help.txt
'
,
'
0
'
);
break
;
default
:
actioned
=
false
;
break
;
...
...
This diff is collapsed.
Click to expand it.
xtrn/go-for/help.txt
0 → 100644
+
17
−
0
View file @
3ebc9f18
hygo-for wgopher client chelp
hc g w go (enter an address:port to connecto to)
hc o w go to the root directory of the current server
hc u or [left] w go back
hc [right] w go forward
hc [tab] w highlight the next item
hc` (backtick) w highlight the previous item
hc [enter] w select the current item
hc j or [up] w scroll up
hc k or [down] w scroll down
hc r w reload the current document, from cache if available
hc R w reload the current document, skipping the cache
hc q w quit
hbechicken
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment