Opining that a prisoner suffering from a terminal illness should be treated with sympathy, the Calcutta High Court on Friday directed the State to allow terminally ill prisoners (TIPs) to be shifted for homes imprisonment so that they may have a peaceful and dignified death surrounded by family and friends.