Gophermap RFC improvement
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
# - mouse support
|
||||
# - smoother rendering and scrolling
|
||||
# - better edge-case stability
|
||||
# - better Gophermap processing according to the RFC
|
||||
# - multi-level navigation history (although you can only go back)
|
||||
# - status bar with currently opened resource name
|
||||
# - ability to accept gopher:// URLs from the command line
|
||||
@@ -152,6 +153,7 @@ amclick() { # args: AM line[, forcedl], output: AM line(s)
|
||||
for line in "${lines[@]}"; do # iterate over every fetched line
|
||||
line="${line##$'\n'}" # remove a starting LF if it's there
|
||||
line="${line%%$'\r'}" # remove a trailing CR if it's there
|
||||
[[ "$line" == '.' ]] && break # stop processing Gophermaps on .
|
||||
gmparse "$line" "$rhost" "$rport"
|
||||
done
|
||||
elif [[ 'P' == "$action" ]]; then # plain text content (can be delimited with both CRLF or LF)
|
||||
|
||||
Reference in New Issue
Block a user