d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
524 stars 40 forks source link

question #245

Closed esaaprillia closed 1 month ago

esaaprillia commented 1 month ago

I see you manage tdlib/td and whatsmeow.

you should be able to create tdlib/td and whatsmeow as nchat dependencies separately instead

esaaprillia commented 1 month ago

i am trying to cross compile. For now I choose to deactivate WhatsApp because it is impossible to do cross compilation if WhatsApp is activated

root@OpenWrt:~# nchat -h
nchat is a terminal-based telegram / whatsapp client.
Usage: nchat [OPTION]
Command-line Options:
    -d, --confdir <DIR>    use a different directory than ~/.nchat
    -e, --verbose          enable verbose logging
    -ee, --extra-verbose   enable extra verbose logging
    -h, --help             display this help and exit
    -k, --keydump          key code dump mode
    -m, --devmode          developer mode
    -r, --remove           remove chat protocol account
    -s, --setup            set up chat protocol account
    -v, --version          output version information and exit
    -x, --export <DIR>     export message cache to specified dir
Interactive Commands:
    PageDn      history next page
    PageUp      history previous page
    Tab         next chat
    Sh-Tab      previous chat
    Ctrl-f      jump to unread chat
    Ctrl-g      toggle show help bar
    Ctrl-l      toggle show contact list
    Ctrl-n      search contacts
    Ctrl-p      toggle show top bar
    Ctrl-q      quit
    Ctrl-s      insert emoji
    Ctrl-t      send file
    Ctrl-x      send message
    Ctrl-y      toggle show emojis
    KeyUp       select message
    Alt-,       decrease contact list width
    Alt-.       increase contact list width
    Alt-e       external editor compose
    Alt-s       external spell check
    Alt-t       external telephone call
Interactive Commands for Selected Message:
    Ctrl-d      delete selected message
    Ctrl-r      download attached file
    Ctrl-v      open/view attached file
    Ctrl-w      open link
    Ctrl-x      send reply to selected message
    Ctrl-z      edit selected message
    Alt-w       external message viewer
    Alt-c       copy selected message to clipboard
Interactive Commands for Text Input:
    Ctrl-a      move cursor to start of line
    Ctrl-c      clear input buffer
    Ctrl-e      move cursor to end of line
    Ctrl-k      delete from cursor to end of line
    Ctrl-u      delete from cursor to start of line
    Alt-Left    move cursor backward one word
    Alt-Right   move cursor forward one word
    Alt-Backsp  delete previous word
    Alt-Delete  delete next word
    Alt-c       copy input buffer to clipboard (if no message selected)
    Alt-v       paste into input buffer from clipboard
    Alt-x       cut input buffer to clipboard
Report bugs at https://github.com/d99kris/nchat
root@OpenWrt:~# nchat -v
nchat v4.50
Copyright (c) 2019-2024 Kristofer Berggren
nchat is distributed under the MIT license.
Written by Kristofer Berggren.
root@OpenWrt:~# cd /usr/bin
root@OpenWrt:/usr/bin# ldd nchat
        /lib/ld-musl-aarch64.so.1 (0x7fb43d4000)
        libncutil.so => /usr/lib/libncutil.so (0x7fb42f3000)
        libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x7fb4282000)
        libformw.so.6 => /usr/lib/libformw.so.6 (0x7fb4261000)
        libmagic.so.1 => /usr/lib/libmagic.so.1 (0x7fb4230000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x7fb411b000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fb3f47000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fb3f16000)
        libc.so => /lib/ld-musl-aarch64.so.1 (0x7fb43d4000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x7fb3ee5000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x7fb3ec4000)
        libz.so.1 => /usr/lib/libz.so.1 (0x7fb3e93000)
root@OpenWrt:/usr/bin# cd
root@OpenWrt:~# nchat --setup
Protocols:
0. Dummy
1. Telegram
2. Exit setup
Select protocol (2): 2
Setup aborted, exiting.
root@OpenWrt:~#