If it is read only the cursor wont show up, I don’t know why you want a cursor in a read only input but if you do you can use javascript to not allow them to enter and autofocus the input to show the cursor.
<input id="input" type="text" value="0" autofocus onkeydown="return false">
4
solved How to add a blinking cursor to a input tag? [closed]