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
aa138438
Commit
aa138438
authored
5 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Don't try to parse lines what don't exist.
parent
7c8626f1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/go-for/go-for.js
+4
-5
4 additions, 5 deletions
xtrn/go-for/go-for.js
with
4 additions
and
5 deletions
xtrn/go-for/go-for.js
+
4
−
5
View file @
aa138438
...
...
@@ -3,14 +3,13 @@ load('scrollbox.js');
load
(
'
typeahead.js
'
);
/* To do
* - Add support for Index-Search
* - Config file
* - User and system-wide bookmarks
* - Include history, user bookmarks, system-wide bookmarks in typeahead suggestions
* - 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
* - 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
...
...
@@ -165,7 +164,7 @@ function go_fetch(host, port, selector, type, query) {
var
line
;
f
.
open
(
'
w
'
);
while
(
time
()
-
dl_start
<
timeout
&&
!
js
.
terminated
&&
socket
.
is_connected
&&
(
line
=
socket
.
recvline
())
!=
'
.
'
)
{
f
.
writeln
(
JSON
.
stringify
(
parse_line
(
line
)));
if
(
line
)
f
.
writeln
(
JSON
.
stringify
(
parse_line
(
line
)));
}
f
.
close
();
}
else
if
(
type
==
'
0
'
||
type
==
'
6
'
)
{
// this is a text 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