In the released binaries for macOS, there is no support for readline. Even using -R for example in lite-client doesn't activate it.
I had to build from source and install homebrew readline lib to enable it.
Here is what I did in case someone needs it:
brew install cmake ninja readline openssl pkg-config
git clone --recursive https://github.com/ton-blockchain/ton.git
cd ton
mkdir build
cd build
cmake .. \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DREADLINE_INCLUDE_DIR=/opt/homebrew/opt/readline/include \
-DREADLINE_LIBRARY=/opt/homebrew/opt/readline/lib/libreadline.dylib
ninja lite-client
In the released binaries for macOS, there is no support for readline. Even using
-Rfor example inlite-clientdoesn't activate it.I had to build from source and install homebrew readline lib to enable it.
Here is what I did in case someone needs it: