otheorange_tag · @otheorange_tag
418 followers · 15269 posts · Server mstdn.social

Wrote this hello world app last few minutes, just smart enough to draw and exit on right click. Just uses output same as the and implementations (setq x "Fo 0 999 3\nF 0 255\nL$ 0 0 800\"Hello world\"\nZ \n")
(while (setq p (asc (fgets stdin))) (cond ((== p 100) (write 1 x (strlen x))) ((== p 51) (exit 0))))

#C #Bash #stdout #stdin #Cloud #GUI #Lisp

Last updated 1 year ago

otheorange_tag · @otheorange_tag
354 followers · 10511 posts · Server mstdn.social

Graphing part is working, just hard coded fns for now, but it's a start! [[oh code, my lisp, ancient variant, out on bitbucket.org/timcdoc/antibrow

#stdout #stdin #nofont #thinclient #App #Cloud #antibrowser #Lisp

Last updated 2 years ago

Jan :rust: :ferris: · @janriemer
481 followers · 2253 posts · Server floss.social

If nothing happens, maybe it waits for stdin? 😉

#programming #CLI #debugging #stdin #stuck #tips

Last updated 2 years ago

Wayne Werner · @ketmorco
297 followers · 1981 posts · Server fosstodon.org

`input` in read from . It's pretty straight forward.

But this is how *most* tools work in Linux. Often times you can give them data on stdin instead of in a file. In Python you might do it like

import sys

if len(sys.argv) > 1:
with open(sys.argv[0]) as f:
data = f.read()
else:
data = sys.stdin.read()

You've gotta .read() from stdin, since `input` just looks for the first newline. Anyway. Piping is a very fundamental part of Linux command line.

#python #stdin

Last updated 2 years ago

Wayne Werner · @ketmorco
297 followers · 1977 posts · Server fosstodon.org

Now remember - so far all of this is just to get two lists - my TableOfContents and all of the WikiWords that exist in my file.

If you use or for any period of time (or - where my pedants at?), you will probably have come across `sort`.

Now we get to talk about streams and files!

Everything in Linux is a file. Which is shockingly powerful. Input from the keyboard? A file you can read from. Output to the screen? A file you can write to. and are their names

#linux #unix #gnulinux #stdin #stdout

Last updated 2 years ago

Batman :verified: · @ask
-1 followers · 134 posts · Server tilde.zone

@Natanox
Could be. I meant "alongside", caz piped commands are parallely executed & do not wait for previous ones unless you .
"&" is "and then" caz the next commands must wait before previous ones to finish.

#stdin

Last updated 2 years ago

(RTP):tor:Privacy & Tech Tips · @RTP
2618 followers · 3880 posts · Server fosstodon.org

Pinephone Keyboard case pictures from the above blog post:

#pinephone #phones #keyboard #pine64 #linux #input #stdin #blog #foss

Last updated 3 years ago

Sozialwelten · @sozialwelten
1438 followers · 10041 posts · Server ifwo.eu