That includes in str?

|
alexmb7 2022-07-30 10:35:08
does printf return 2 on ‘he’
smol_mazunki 2022-07-30 10:35:21
but if you can’t, you create an array of pointers for example
alexmb7 2022-07-30 10:35:39
hmh i need some raw-out function
alexmb7 2022-07-30 10:35:54
that doesnt stop on s
alexmb7 2022-07-30 10:36:21
map ( stdout , str , len )
smol_mazunki 2022-07-30 10:36:23
alexmb7 2022-07-30 10:35:39
hmh i need some raw-out function

afaik there’s no magic way to do that

alexmb7 2022-07-30 10:36:30
kk
alexmb7 2022-07-30 10:36:38
im looking for raw implenting such
alexmb7 2022-07-30 10:36:59
i mean i have to know those ‘basics’ anyway
or else its like bash an only one way
alexmb7 2022-07-30 10:37:29
i may buy the c22 or c23 whatever is available book
alexmb7 2022-07-30 10:37:37
may can do something
thecatvoid 2022-07-30 10:38:02
linux_group-1388359.jpg
cursor in tiny in foot terminal or normal workspace, but is huge in other apps
thecatvoid 2022-07-30 10:38:03
linux_group-1388360.jpg

smol_mazunki 2022-07-30 10:38:35
alexmb7 2022-07-30 10:36:21
map ( stdout , str , len )

while (true) {
char buffer[1024];
read(stdin, buffer, 1024);
fprintf(stdout, “%s”, buffer);
}

thecatvoid 2022-07-30 10:38:36
thecatvoid 2022-07-30 10:38:02
cursor in tiny in foot terminal or normal workspace, but is huge in other apps

i did this
swaymsg -t output eDP-1 scale 2

alexmb7 2022-07-30 10:38:59
smol_mazunki 2022-07-30 10:38:35
while (true) {
char buffer[1024];
read(stdin, buffer, 1024);
fprintf(stdout, “%s”, buffer);
}

that includes in str ?

thecatvoid 2022-07-30 10:39:08
thecatvoid 2022-07-30 10:38:36
i did this
swaymsg -t output eDP-1 scale 2

but the cursor on normal screen was supposed to be scaled larger too

smol_mazunki 2022-07-30 10:39:10
alexmb7 2022-07-30 10:38:59
that includes in str ?

yeah read() is responsible for that

alexmb7 2022-07-30 10:39:29
thecatvoid 2022-07-30 10:38:36
i did this
swaymsg -t output eDP-1 scale 2

linux desktop properties are lots of different things, i dunno em also, just saying ..

alexmb7 2022-07-30 10:39:42
very good
alexmb7 2022-07-30 10:39:59
then u just showed me the code i wanted, at least for the print part
smol_mazunki 2022-07-30 10:40:04
man 2 read
alexmb7 2022-07-30 10:40:07
very good
alexmb7 2022-07-30 10:40:17
ye btw i gotta go out soon
smol_mazunki 2022-07-30 10:40:22
yeah ok
alexmb7 2022-07-30 10:40:52
ill think more about it
smol_mazunki 2022-07-30 10:41:16
ah no, read() doesn’t add
smol_mazunki 2022-07-30 10:41:22
but you can easily fix that if you want
alexmb7 2022-07-30 10:41:34
i need async read, select maybe
then i need also a one byte read also
alexmb7 2022-07-30 10:41:38
mmm sounds good
alexmb7 2022-07-30 10:41:54
smol_mazunki 2022-07-30 10:41:16
ah no, read() doesn’t add

if str has null will it read it

smol_mazunki 2022-07-30 10:41:54
eg
read(stdin, buffer, 1023);
buffer[1023] = ”;
alexmb7 2022-07-30 10:42:03
smol_mazunki 2022-07-30 10:41:54
eg
read(stdin, buffer, 1023);
buffer[1023] = ”;

no need want add

alexmb7 2022-07-30 10:42:11
only if in user data
smol_mazunki 2022-07-30 10:42:19
alexmb7 2022-07-30 10:41:54
if str has null will it read it

when you use printf you should make sure it terminates

|