Search Results

Search: Posts Made By: DevuanFan
1,219
Posted By DevuanFan
I solved this with an environmental variable: ...
I solved this with an environmental variable:

export G_FILENAME_ENCODING=UTF-8

Putting it in my ~/.profile makes it permanent.

I figured this out when I stumbled into section 81.2 here:...
1,219
Posted By DevuanFan
That dash definitely triggers the bug and I...
That dash definitely triggers the bug and I cannot print the duckduckgo.com homepage to PDF unless I delete the dash (replacing it with a hyphen works fine).

So I guess my problem is worse than I...
1,219
Posted By DevuanFan
Not in the url. In the page title. The dash here:...
Not in the url. In the page title. The dash here: "DuckDuckGo – Privacy, simplified."
1,219
Posted By DevuanFan
Sorry, neo. It's not a hyphen/minus in...
Sorry, neo. It's not a hyphen/minus in duckduckgo.com, it seems to be a dash. Definitely not ASCII. After I dig myself out of the error dialogs, replacing the dash with a minus makes the filename...
1,219
Posted By DevuanFan
Many reasons. The main one is that I often print...
Many reasons. The main one is that I often print webpages to PDF from my browser (chromium). When I try to print a webpage to PDF, if there are any non-ASCII characters in the webpage's name then I...
1,219
Posted By DevuanFan
Support for Unicode in GTK2 and GTK3 file selection box?
I'm on Tiny Core Linux Pure64 10.1. My locale is en_US.UTF-8 and I generally have no trouble with Unicode characters with one exception: When I try to use Unicode characters in GTK applications' file...
Forum: Hardware 11-19-2019
1,284
Posted By DevuanFan
Neo, here you go: # echo serio1...
Neo, here you go:
# echo serio1 >/sys/bus/serio/drivers/psmouse/unbind
# echo serio2 >/sys/bus/serio/drivers/psmouse/bind
bash: echo: write error: No such device

By the way, I found a hardware...
Forum: Hardware 11-19-2019
1,284
Posted By DevuanFan
That's an excellent idea. It would be a nice...
That's an excellent idea. It would be a nice solution if I could get it to work.

# echo serio1 >/sys/bus/serio/drivers/psmouse/unbind
# echo serio1 >/sys/bus/serio/drivers/psmouse/bind

The...
Forum: Hardware 11-19-2019
1,284
Posted By DevuanFan
How to *completely* disable laptop touchpad, without disabling trackpoint?
I run Devuan ASCII on my T400 laptop. I only use the trackpoint ("nipple mouse"). To me, the touchpad is just a nuisance.

I've discovered (by monitoring output of sudo cat /dev/input/event5) that...
Forum: Programming 11-12-2019
2,571
Posted By DevuanFan
Thank you, Jim. That's a great tutorial. In...
Thank you, Jim. That's a great tutorial.

In case this helps other newbies, I moved the getstring function to a separate file containing custom functions. Also, I changed getstring's logic to go...
Forum: Programming 11-11-2019
2,571
Posted By DevuanFan
Andrew, thank you so much for your beautiful...
Andrew, thank you so much for your beautiful explanation. I understand the issue and can confirm that this works exactly as expected:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
...
Forum: Programming 11-11-2019
2,571
Posted By DevuanFan
C: inputting string of unknown length
I realize this general issue (inputting strings of variable length in C) has been addressed in myriad locations before, but I'm interested in knowing why my specific approach is not working. (BTW I'm...
327
Posted By DevuanFan
Actually, for some reason it is not necessary to...
Actually, for some reason it is not necessary to turn off buffering in the first command. Only in the second. In other words, these versions also work:

xinput test 9 | stdbuf -o0 grep release |...
327
Posted By DevuanFan
YES! That works. Is there a way to generalize...
YES! That works. Is there a way to generalize this solution (e.g., at the level of the shell), so that things keep flowing down the pipe?

--- Post updated at 04:09 PM ---

Thank you, RudiC and...
327
Posted By DevuanFan
Both gawk and nawk complain: option `-W...
Both gawk and nawk complain: option `-W interactive` unrecognized, ignored.

But I think we're getting warmer. It does seem to have something to do with buffering.
327
Posted By DevuanFan
No, that's not the issue: xinput test 6...
No, that's not the issue: xinput test 6 definitely outputs to stdout. Proof is that xinput test 6 6>/dev/null produces output, but xinput test 6 1>/dev/null produces no output.

As I tried to...
327
Posted By DevuanFan
@vgersh99: X input devices have id's, which vary...
@vgersh99: X input devices have id's, which vary from machine to machine (on my machine, X sees the keyboard as input id=6 and mouse as input id=7, for instance).

Yes, the command you suggested...
327
Posted By DevuanFan
Here is the output in the terminal when I type...
Here is the output in the terminal when I type unix after executing the command:

$ xinput test 6
key press 30
key release 30
key press 57
key release 57
key press 31
key release...
327
Posted By DevuanFan
Limit on number of pipes after long-running command? [SOLVED]
I'm trying to create a minimal, crude keylogger for X using only a shell script. I was quickly stumped: Why do these two commands entered in a terminal emulator produce output when I type...

$...
4,854
Posted By DevuanFan
I had tried that, but apparently pdksh there is...
I had tried that, but apparently pdksh there is no history command: 'history' is just an alias for 'fc -l'

So you're saying the "real" ksh has 'history' command with these flags? Nice! I'm...
4,854
Posted By DevuanFan
Thanks, bakunin. I'm new to the Korn shell, so...
Thanks, bakunin. I'm new to the Korn shell, so had no idea about these nuances. I see that ksh93 is in the OpenBSD package repository, so I'll install it and see how it's different from pdksh.
...
4,854
Posted By DevuanFan
Hi, bakunin. I'm finding that it is not so...
Hi, bakunin. I'm finding that it is not so simple. If I have ksh running in a terminal emulator and manually edit the history file while the emulator is running, lines that I add to the HISTFILE will...
4,854
Posted By DevuanFan
Thank you, Jim, that is a useful alias but not...
Thank you, Jim, that is a useful alias but not what I'm looking for. I'll try to explain it differently:

When I'm working, I often have multiple terminal emulators open at once. If I pick any one...
4,854
Posted By DevuanFan
I did try searching, but no luck. I guess nobody...
I did try searching, but no luck. I guess nobody using ksh as their interactive shell is as lazy as I am.

Hopefully one of the ksh experts will get back to me after holidays. In the meantime,...
4,854
Posted By DevuanFan
[ksh] how to reload history file without entering a command
I'm basically looking for the ksh equivalent of bash's PROMPT_COMMAND="history -r", where simply redrawing the command prompt in a terminal will cause ksh to reload the history file.

At the risk...
Showing results 1 to 25 of 27

 

Featured Tech Videos

All times are GMT -4. The time now is 06:10 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy