Just give them computers already...
What is with this BS idea of medieval jail conditions...
Their thinking is that making the conditions bad will serve as deterrent i.e. would-be criminals would think twice before committing crimes because they're scared of going to prison.
Of course, this makes no sense, as most criminals have low impulse control and don't think about the consequences of their actions in terms of risk/reward calculations. We should use prison time to re-educate these people and try to make them better instead of psychologically torturing them, but here we are, and it's very unlikely things can change within the current political system (too many "checks and balances" for meaningful reforms)
Ok, here's your tablet!
https://epic.org/free-prison-tablets-in-promise-and-in-pract...
They had computers in one place I was in, but not connected to the Net, just for doing some basic word processing and typing tutorials.
I found the C# compiler that is hidden several levels deep by default in the Windows directory and decided to teach the other prisoners how to code. I needed some reference materials as it's really hard when you have no docs and literally just the compiler. They don't allow computer books in most places "for security reasons", but a very elderly nun took pity on me and asked me what I wanted. I told her "C# Weekend Crash Course" (I wasn't a C# dev at the time and it was the only title I could think of) and she bought it off Amazon and smuggled in not only the book but the CD-ROM that came with it, bless her. I managed to teach the guys how to write text adventures which they enjoyed. I couldn't think of what else fun I could get them to do with only console text in/out.