You are not logged in.

#1 2024-11-10 04:52:18

LittleYe233
Member
Registered: 2022-04-26
Posts: 5

[SOLVED] Super and Fn key give an output of strings on the terminal

I have set up Hyprland on my computer but the Super key and Fn keys work strangely even after a reboot. For example when I press Super+t in the terminal, "t" is directly shown in it. Super+Arrow keys give outputs like "3A" "3B" "3C" "3D". Some of the Fn keys output a tilde "~". These keys in other ttys also malfunction. I have heard something about "raw mode" of terminals but I found nothing useful on the Internet. My keyboard layout is us. So what's wrong with it and how to fix it? Any reply will be highly appreciated.

EDIT:

1. I am a Chinese user, and I remembered that I had never set up a keymap layout manually before. It should work directly.
2. In fact I have just deleted part of my home and I seek for a reinstall of Hyprland. These keys were working before this deletion mistake, but suddenly didn't work just after I reinstalled.

Last edited by LittleYe233 (2024-11-10 11:16:25)

Offline

#2 2024-11-10 09:47:57

seth
Member
Registered: 2012-09-03
Posts: 59,084

Re: [SOLVED] Super and Fn key give an output of strings on the terminal

Super+Arrow keys give outputs like "3A" "3B" "3C" "3D".

Those are escape sequences and  pretty much what you can expect if the TE or shell doesn't handle them

1. what is the terminal emulator
2. what is the shell
3. what do you expect those keys to do? I assume you meant to assign them to some global shortcut and that doesn't happen?

I have just deleted part of my home and I seek for a reinstall of Hyprland

So you've probably nuked some hyprland config and pot. shell RC as well…

Offline

#3 2024-11-10 09:59:59

LittleYe233
Member
Registered: 2022-04-26
Posts: 5

Re: [SOLVED] Super and Fn key give an output of strings on the terminal

@seth Thanks for your reply. I have tested kitty and alacritty, as well as bash and zsh. All of them have this problem.

Yes, I want to use these keys to bind with other commands in Hyprland configurations, like opening another terminal and switching workspaces.

Also I have reinstalled the whole system and applied factory settings to BIOS (for it can change behaviours of some keys), both of them still don't work.

Offline

#4 2024-11-10 10:09:10

seth
Member
Registered: 2012-09-03
Posts: 59,084

Re: [SOLVED] Super and Fn key give an output of strings on the terminal

This has nothing to do w/ your factory settings or BIOS etc et pp.
They're simply not bound to any action, passed to the client and that also doesn't know what to do with them (what's kinda normal)
https://wiki.hyprland.org/Configuring/Binds/

Offline

#5 2024-11-10 11:16:07

LittleYe233
Member
Registered: 2022-04-26
Posts: 5

Re: [SOLVED] Super and Fn key give an output of strings on the terminal

Sorry for my delay. I just installed one of the recommended preinstalled dotfiles of Hyprland, and it seems that the functional keys are working now. Thank you very much!

Offline

Board footer

Powered by FluxBB