Q on Linux: Can't use arrow keys

I recently installed Q/Kdb+ 4.0 onto PopOS and for some reason, I can’t use the arrow keys to go back through my Q terminal history

When I press the up or down arrow I get an output similar to this

 

q)^[[A //up-arrow
q)^[[B //down-arrow

 

The above characters are outputted instead of going through the Q command history.

Does anyone know if there is a way to fix this

 

Installing kdb+ | Learn | kdb+ and q documentation - Kdb+ and q documentation (kx.com) 

 

You’ll need to install a utility program like rlwrap and run that when you start q to add command history navigation within your q session.

Thanks. Missed that because I used the Github docs for install