Browse Source

Handling of backslashes in input fixed.

pull/1/head
Sam Hunter 2 months ago
parent
commit
31307abf90
2 changed files with 65 additions and 63 deletions
  1. +63
    -61
      teletype
  2. +2
    -2
      twrtr

+ 63
- 61
teletype View File

@ -15,9 +15,12 @@ typeout () {
Y=$((LINES-2))
CY=$((LINES-1))
for ((x=0;x<${#S};x++)){
printf "\x1b[%s;%sH\x1b[31m%1.1s\x1b[0m" $Y $((X)) "${S:x:1}"
sleep 0.05
printf "\x1b[%s;%sH%1.1s" $Y $((X)) "${S:x:1}"
TC="${S:x:1}"
if [ "$TC" != " " ] ; then
printf "\x1b[%s;%sH\x1b[31m%1.1s\x1b[0m" $Y $((X)) "$TC"
sleep 0.05
printf "\x1b[%s;%sH%1.1s" $Y $((X)) "$TC"
fi
printf "\x1b[%s;%sH\x1b[31m%1.1s\x1b[0m" $CY $((X+1)) "A"
sleep 0.05
printf "\x1b[%s;%sH%1.1s" $CY $((X+1)) " "
@ -37,87 +40,86 @@ typeout () {
}
clear
while read "LINE" ; do
while IFS= read -r "LINE" ; do
typeout "$LINE"
#sleep 0.2
#printf "\x1b[S\x1b[300D"
done <<-'_rtc_'
RTC
Starter Kit
===========
_ _ RTC _ _ _
__| |_ __ _ _ _| |_ ___ _ _ | |_(_) |_
(_-< _/ _` | '_| _/ -_) '_| | / / | _|
/__/\__\__,_|_| \__\___|_| |_\_\_|\__|
Welcome to rawtext.club! This is your official welcome kit and get-started
guide.
Welcome to rawtext.club! This is your official welcome kit and get-started
guide.
rawtext.club (RTC) is different than other command line shell communities.
This guide explains some differences, and should help you learn how to get the
most out of the environment.
rawtext.club (RTC) is different than other command line shell communities.
This guide explains some differences, and should help you learn how to get the
most out of the environment.
= LESS TALK. MORE DO. =
= LESS TALK. MORE DO. =
Yes, RTC has chat. But chat isn't the point. Don't get stuck on chat.
Yes, RTC has chat. But chat isn't the point. Don't get stuck on chat.
Here are a few other ways you can interact with other members:
Here are a few other ways you can interact with other members:
* shlog (shell blog) - Write about topics that interest you. Read and respond
to shlogs written by other members.
* shlog (shell blog) - Write about topics that interest you. Read and respond
to shlogs written by other members.
* linkulator - Share links to networked resources (www, gopher, gemini, etc).
Read and comment on links shared by others.
* linkulator - Share links to networked resources (www, gopher, gemini, etc).
Read and comment on links shared by others.
* iris - Interact with others through this minimalist forum software.
* iris - Interact with others through this minimalist forum software.
* Publish text-based content to the world via http, gopher or gemini protocols.
(If you want to publish gemini content, let ~cmccabe know because your directory
has to be manually linked for the gemini server, molly brown, to serve it.)
* Publish text-based content to the world via http, gopher or gemini protocols.
(If you want to publish gemini content, let ~cmccabe know because your directory
has to be manually linked for the gemini server, molly brown, to serve it.)
* Pick a skill and build a learning path to master it. RTC members have a wide
variety of text-based computing skills and are happy to give you tips.
Others are happy to learn from you.
* Pick a skill and build a learning path to master it. RTC members have a wide
variety of text-based computing skills and are happy to give you tips.
Others are happy to learn from you.
* Share a mix of text and code using gitbbs.
* Share a mix of text and code using gitbbs.
* Develop software collaboratively with RTC members and others using our
web-based Gitea software forge: https://git.rawtext.club
* Develop software collaboratively with RTC members and others using our
web-based Gitea software forge: https://git.rawtext.club
* Let people know who you are by creating your who-is profile. who-is was
created by RTC member, ~gogoigo.
* Let people know who you are by creating your who-is profile. who-is was
created by RTC member, ~gogoigo.
None of these things requires snap reactions from you. Think about them. Plan
them out. Do them when you're inspired and when you have time. They're
"Slow".
None of these things requires snap reactions from you. Think about them. Plan
them out. Do them when you're inspired and when you have time. They're
"Slow".
Type 'man rawtext.club' at the command line for more information on these and
other tools.
Type 'man rawtext.club' at the command line for more information on these and
other tools.
= AND WHAT ABOUT CHAT AGAIN? =
= AND WHAT ABOUT CHAT AGAIN? =
RTC does indeed have a chat program, called 'gab', written by RTC member,
~sloum. You can use it by typing 'gab' at the shell. Or if you need a
quick-start guide, read this file: ~cmccabe/share/gab-how-to.txt
RTC does indeed have a chat program, called 'gab', written by RTC member,
~sloum. You can use it by typing 'gab' at the shell. Or if you need a
quick-start guide, read this file: ~cmccabe/share/gab-how-to.txt
The neat thing about 'gab' is that it is not just a client, but it defines an
open structure for chat data, and you can write your own gab-alternative client
for it. See ~wangofett's 'partyfett' client as an example. You can write your
own client too!
The neat thing about 'gab' is that it is not just a client, but it defines an
open structure for chat data, and you can write your own gab-alternative client
for it. See ~wangofett's 'partyfett' client as an example. You can write your
own client too!
To learn more about 'gab' and the chat data structure, see sloum's git repo:
https://git.rawtext.club/sloum/gab2
To learn more about 'gab' and the chat data structure, see sloum's git repo:
https://git.rawtext.club/sloum/gab2
= IMPORTANT CAUSE UNDERLYING RTC =
= IMPORTANT CAUSE UNDERLYING RTC =
The focus on "Slow" in RTC has nothing to do with speed. It has to do with
moving at your own pace, making decisions based on your own interests, and
rejecting the coercion and exploitation of the commercial internet.
The focus on "Slow" in RTC has nothing to do with speed. It has to do with
moving at your own pace, making decisions based on your own interests, and
rejecting the coercion and exploitation of the commercial internet.
The ad-revenue model of the WWW is killing the internet, and poisoning
democratic societies that rely on the watchful eye of engaged, informed
citizens. While the commercial WWW promotes complacency and passive
consumerism, you can resist this pestilence by arming yourself with the skills
to use the internet without the "help" of Google, Facebook or others. You may
even use those those skills to help others join the resistance.
The ad-revenue model of the WWW is killing the internet, and poisoning
democratic societies that rely on the watchful eye of engaged, informed
citizens. While the commercial WWW promotes complacency and passive
consumerism, you can resist this pestilence by arming yourself with the skills
to use the internet without the "help" of Google, Facebook or others. You may
even use those those skills to help others join the resistance.
RTC is only one member of a resurgence of similar-minded servers on the
decentralized, non-commercial internet. We support them and the people running
and using them.
RTC is only one member of a resurgence of similar-minded servers on the
decentralized, non-commercial internet. We support them and the people running
and using them.
_rtc_

+ 2
- 2
twrtr View File

@ -41,11 +41,11 @@ typeout () {
clear
if [ -r "$1" ] ; then
while IFS= read "LINE" ; do
while IFS= read -r "LINE" ; do
typeout "$LINE"
done < "$1"
else
while IFS= read "LINE" ; do
while IFS= read -r "LINE" ; do
typeout "$LINE"
done
fi

Loading…
Cancel
Save